Use define syntax.

This commit is contained in:
Taylor Otwell 2015-05-09 16:43:43 -05:00
parent e11d40abd0
commit 9a6c3df7a0
1 changed files with 2 additions and 2 deletions

View File

@ -11,11 +11,11 @@
|
*/
$factory['App\User'] = function ($faker) {
$factory->define('App\User', function ($faker) {
return [
'name' => $faker->name,
'email' => $faker->email,
'password' => str_random(10),
'remember_token' => str_random(10),
];
};
});