diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 75f3298..770667b 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -5,6 +5,7 @@ namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; +use Random\RandomException; class UserFactory extends Factory { @@ -15,6 +16,7 @@ class UserFactory extends Factory /** * Define the user's default state. + * @throws RandomException */ public function definition(): array { @@ -23,6 +25,7 @@ class UserFactory extends Factory 'email' => fake()->unique()->safeEmail(), 'email_verified_at' => now(), 'password' => static::$password ??= Hash::make('password'), + 'about' => fake()->paragraphs(random_int(1, 10), true), 'two_factor_secret' => null, 'two_factor_recovery_codes' => null, 'remember_token' => Str::random(10), diff --git a/database/migrations/0001_01_01_000000_create_users_table.php b/database/migrations/0001_01_01_000000_create_users_table.php index 5d26cb2..1e03166 100644 --- a/database/migrations/0001_01_01_000000_create_users_table.php +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -22,6 +22,7 @@ return new class extends Migration $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); + $table->longText('about'); $table->foreignIdFor(UserRole::class) ->nullable() ->default(null)