user()->can('manage_subscriptions'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|max:60', 'price' => 'required|numeric', 'start_date' => 'required|date|date_format:Y-m-d', 'due_date' => 'required|date|date_format:Y-m-d', 'project_id' => 'required|numeric', 'vendor_id' => 'required|numeric', 'type_id' => 'required|numeric', 'remark' => 'max:255', ]; } }