Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Create fake users on click laravel

$factory->define(AppUser::class, function(Faker $faker) {
    return [
        'first_name'        => $faker->firstName,
        'last_name'         => $faker->lastName,
        'email'             => $faker->unique()->safeEmail,
        'email_verified_at' => now(),
        'password'          => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
        'remember_token'    => str_random(10),
    ];
});
 
PREVIOUS NEXT
Tagged: #Create #fake #users #click #laravel
ADD COMMENT
Topic
Name
7+4 =