FleetCart/Modules/User/Database/Factories/ModelFactory.php

14 lines
318 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?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),
];
});