2015-07-08 03:34:58 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Model Factories
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here you may define all of your model factories. Model factories give
|
|
|
|
| you a convenient way to create models for testing and seeding your
|
|
|
|
| database. Just tell the factory how a default model should look.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2016-08-19 16:38:49 -04:00
|
|
|
$factory->define(App\User::class, function (Faker\Generator $faker) {
|
2015-07-08 03:34:58 -04:00
|
|
|
return [
|
|
|
|
'name' => $faker->name,
|
2016-08-19 16:38:49 -04:00
|
|
|
'email' => $faker->safeEmail,
|
|
|
|
'password' => bcrypt(str_random(10)),
|
2015-07-08 03:34:58 -04:00
|
|
|
'remember_token' => str_random(10),
|
|
|
|
];
|
|
|
|
});
|