From d7e7fb3c278f3a67e3c8bc25442f50dc939828ea Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 27 Dec 2023 00:42:31 +0100 Subject: [PATCH] Add faker for TextField --- app/Form/Fields/TextField.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Form/Fields/TextField.php b/app/Form/Fields/TextField.php index b8404510..2e4e9cb9 100644 --- a/app/Form/Fields/TextField.php +++ b/app/Form/Fields/TextField.php @@ -25,6 +25,8 @@ class TextField extends Field public static function fake(Generator $faker): array { - return []; + return [ + 'required' => $faker->boolean(), + ]; } }