Changeset View
Changeset View
Standalone View
Standalone View
src/database/factories/UserFactory.php
Show All 14 Lines | |||||
| model instances for testing / seeding your application's database. | | model instances for testing / seeding your application's database. | ||||
| | | | ||||
*/ | */ | ||||
$factory->define( | $factory->define( | ||||
User::class, | User::class, | ||||
function (Faker $faker) { | function (Faker $faker) { | ||||
return [ | return [ | ||||
'name' => $faker->name, | |||||
'email' => $faker->unique()->safeEmail, | 'email' => $faker->unique()->safeEmail, | ||||
'email_verified_at' => now(), | |||||
'password' => Str::random(64) | 'password' => Str::random(64) | ||||
]; | ]; | ||||
} | } | ||||
); | ); |