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