user()->hasPermission('update-roles'); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { $role = $this->route('role'); return $this->baseRules($role->id); } }