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