You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
466 B

4 years ago
4 years ago
4 years ago
  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\Models\User;
  4. use Faker\Generator as Faker;
  5. $factory->define(User::class, function (Faker $faker) {
  6. return [
  7. 'name' => $faker->name,
  8. 'email' => $faker->unique()->safeEmail,
  9. 'mobile' => $faker->unique()->phoneNumber,
  10. 'username' => $faker->unique()->userName,
  11. 'password' => '$2y$10$l8jgLtb7RyDd7wbvxYPsuu7gjo/bLBkBYQhXnkpdmm.SVF3CT00UW',
  12. ];
  13. });