2015-05-08 08:42:04 -05:00
|
|
|
<?php
|
|
|
|
|
2018-12-18 09:07:33 -06:00
|
|
|
use App\User;
|
2017-04-11 10:41:19 -05:00
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
2015-05-08 08:42:04 -05:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Model Factories
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2017-04-11 10:41:19 -05:00
|
|
|
| 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.
|
2015-05-08 08:42:04 -05:00
|
|
|
|
|
|
|
|
*/
|
2016-10-07 16:39:42 -05:00
|
|
|
|
2018-12-18 09:07:33 -06:00
|
|
|
$factory->define(User::class, function (Faker $faker) {
|
2015-05-08 08:42:04 -05:00
|
|
|
return [
|
|
|
|
'name' => $faker->name,
|
2016-09-20 08:23:40 +02:00
|
|
|
'email' => $faker->unique()->safeEmail,
|
2018-09-15 10:14:06 +05:30
|
|
|
'email_verified_at' => now(),
|
2018-10-06 23:17:02 +05:30
|
|
|
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
|
2015-05-08 08:42:04 -05:00
|
|
|
'remember_token' => str_random(10),
|
|
|
|
];
|
2015-05-09 16:43:43 -05:00
|
|
|
});
|