MINI Sh3ll
<?php
use Illuminate\Support\Str;
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/
$factory->define(App\User::class, function (Faker $faker) {
return [
'first_name' => $faker->firstname,
'last_name' => $faker->lastname,
'middle_name' => 'Mid',
'address' => $faker->address,
'city' => $faker->city,
'mobile' => 12345,
'email' => $faker->unique()->safeEmail,
'email_verified_at' => $faker->dateTime($max = 'now', $timezone = null),
'otp' => $faker->biasedNumberBetween($min = 100000, $max = 999999, $function = 'sqrt'),
'password' => $faker->password, // secret
];
});
OHA YOOOO