*/ public function rules(): array { return [ ...$this->globalRules(), ]; } /** * @return array */ public function getValidationAttributes(): array { return [ ...$this->globalValidationAttributes(), ]; } /** * @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([]); } }