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