model = $this->route('classified'); $this->action = $this->getAction(); // Determine if the user is authorized to perform the action. return $this->can($this->action); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return config('litecms.classified.classified.action.role', []); } }