segment(2)); return auth()->user()->can('delete', $task); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'task_id' => 'required', 'job_id' => 'required', ]; } }