*/ public function rules(): array { return [ ...$this->globalRules(), ]; } /** * @return array */ public function getValidationAttributes(): array { return [ ...$this->globalValidationAttributes(), ]; } /** * @param array $attributes */ public function handle(Formtemplate $formtemplate, array $attributes): void { $formtemplate->update($attributes); } public function asController(Formtemplate $formtemplate, ActionRequest $request): JsonResponse { $this->handle($formtemplate, $request->validated()); Succeeded::message('Vorlage aktualisiert.')->dispatch(); return response()->json([]); } }