status) { $this->request->add(['status' => false]); } $this->request->add(['slug' => Str::slug($this->name)]); return auth()->check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|min:3|max:50', 'slug' => 'required|min:1|unique:labels,slug', 'status' => 'required|boolean' ]; } }