get('project_id')); return auth()->user()->can('manage_jobs', $project); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'job_id' => 'required', 'project_id' => 'required', ]; } }