FleetCart/Modules/User/Database/Factories/ModelFactory.php
2023-06-11 13:14:03 +01:00

14 lines
318 B
PHP

<?php
use Faker\Generator;
use Modules\User\Entities\User;
$factory->define(User::class, function (Generator $faker) {
return [
'first_name' => $faker->firstName,
'last_name' => $faker->lastName,
'email' => $faker->safeEmail,
'password' => bcrypt(123456),
];
});