user() && $this->user()->hasPermission('edit-forms'); } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { $form = $this->route('form'); $id = $form instanceof \App\Models\Form ? $form->id : $form; return $this->baseRules($id); } }