model = $this->route('costcenter'); $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.costcenter.costcenter.action.role', []); } }