user()->can('update', $this->route('master')); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'title' => 'required|max:60', 'description' => 'nullable|max:255', ]; } }