Added a User factory

This commit is contained in:
James Brooks
2015-06-01 22:42:49 +01:00
parent 049b9ac308
commit 2af917ace4

View File

@@ -0,0 +1,22 @@
<?php
/*
* This file is part of Cachet.
*
* (c) Cachet HQ <support@cachethq.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$factory->define('CachetHQ\Cachet\Models\User', function ($faker) {
return [
'username' => $faker->userName,
'email' => $faker->email,
'password' => str_random(10),
'remember_token' => str_random(10),
'api_key' => str_random(20),
'active' => true,
'level' => 1,
];
});