Skip to content

Instantly share code, notes, and snippets.

@madhusudhan1234
Created December 17, 2018 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madhusudhan1234/2cbc516f1f19b74958bd1057ccd3f8b9 to your computer and use it in GitHub Desktop.
Save madhusudhan1234/2cbc516f1f19b74958bd1057ccd3f8b9 to your computer and use it in GitHub Desktop.
$factory->define(App\User::class, function (Faker $faker) {
return [
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'email_verified_at' => now(),
'address' => $faker->address,
'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
'remember_token' => str_random(10),
];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment