user()->can('manage_masters'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|max:60|unique:masters,name,' . $this->segment(2), 'description' => 'max:255' ]; } }