From 022df148bd5ec56811f26a931a2a6c754fcff443 Mon Sep 17 00:00:00 2001 From: Lee Evans Date: Sun, 25 Feb 2024 21:39:40 +0000 Subject: [PATCH] Update factory to include new fields addtional_info and fields --- database/factories/ConsentOptionFactory.php | 22 +++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/database/factories/ConsentOptionFactory.php b/database/factories/ConsentOptionFactory.php index eca923d..e5bef4d 100644 --- a/database/factories/ConsentOptionFactory.php +++ b/database/factories/ConsentOptionFactory.php @@ -15,17 +15,19 @@ public function definition(): array $title = $this->faker->words(3, true); return [ - 'key' => Str::slug($title), - 'version' => $this->faker->randomNumber(), - 'title' => $title, - 'label' => 'Tick here to accept the terms', - 'text' => $this->faker->paragraph, - 'is_mandatory' => 1, - 'is_current' => 1, + 'key' => Str::slug($title), + 'version' => $this->faker->randomNumber(), + 'title' => $title, + 'label' => 'Tick here to accept the terms', + 'text' => $this->faker->paragraph, + 'is_mandatory' => 1, + 'is_current' => 1, + 'additional_info' => false, + 'fields' => [], 'force_user_update' => 1, - 'enabled' => 1, - 'models' => config('filament-user-consent.models'), - 'published_at' => now(), + 'enabled' => 1, + 'models' => config('filament-user-consent.models'), + 'published_at' => now(), ]; } }