segment(2)); return auth()->user()->can('manage_jobs', $project); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|max:60', 'price' => 'required|numeric', 'worker_id' => 'required|numeric', 'type_id' => 'required|numeric', 'description' => 'max:255', ]; } }