From e001e6eb2cead818cb7f8f86b3f55cecdb1dd7d6 Mon Sep 17 00:00:00 2001
From: Philipp Reinking <philipp@deck9.co>
Date: Fri, 24 Nov 2023 08:55:48 +0200
Subject: [PATCH] update form block create docs

---
 app/Http/Controllers/Api/FormBlockController.php | 4 +++-
 config/scribe.php                                | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/Http/Controllers/Api/FormBlockController.php b/app/Http/Controllers/Api/FormBlockController.php
index 727a3c5c..b5432519 100644
--- a/app/Http/Controllers/Api/FormBlockController.php
+++ b/app/Http/Controllers/Api/FormBlockController.php
@@ -10,6 +10,7 @@
 use App\Models\FormBlock;
 use Illuminate\Http\Request;
 use Knuckles\Scribe\Attributes\Authenticated;
+use Knuckles\Scribe\Attributes\BodyParam;
 use Knuckles\Scribe\Attributes\Group;
 
 #[Group('Form Blocks')]
@@ -42,7 +43,8 @@ public function index(Request $request, Form $form)
      *
      * This endpoint creates a new form block for the specified form.
      */
-    public function create(Form $form, Request $request)
+    #[BodyParam('type', description: 'The type of the form block. The form block type defaults to `none`.', required: false, enum: FormBlockType::class)]
+    public function create(Request $request, Form $form)
     {
         $this->authorize('update', $form);
 
diff --git a/config/scribe.php b/config/scribe.php
index a5237027..30ee870f 100644
--- a/config/scribe.php
+++ b/config/scribe.php
@@ -362,14 +362,14 @@
          * If you would like the package to generate the same example values for parameters on each run,
          * set this to any number (eg. 1234)
          */
-        'faker_seed' => 2023,
+        'faker_seed' => 1337,
 
         /*
          * With API resources and transformers, Scribe tries to generate example models to use in your API responses.
          * By default, Scribe will try the model's factory, and if that fails, try fetching the first from the database.
          * You can reorder or remove strategies here.
          */
-        'models_source' => ['factoryCreate', 'factoryMake', 'databaseFirst'],
+        'models_source' => ['factoryCreate', 'factoryMake'],
     ],
 
     /**