*/ public function rules(): array { return [ ...$this->globalRules(), 'description' => 'required|string', 'excerpt' => 'required|string|max:120', ]; } /** * @param array $attributes */ public function handle(array $attributes): Form { return Form::create($attributes); } public function asController(ActionRequest $request): JsonResponse { $this->handle($request->validated()); Succeeded::message('Formular gespeichert.')->dispatch(); return response()->json([]); } }