'required|string|max:255', 'config' => '', ]; } /** * @param array $attributes */ public function handle(array $attributes): Formtemplate { return Formtemplate::create($attributes); } public function asController(ActionRequest $request): JsonResponse { $this->handle($request->validated()); return response()->json([]); } }