2016-09-29 22:20:49 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class UserSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
2017-10-07 03:41:46 -07:00
|
|
|
User::truncate();
|
|
|
|
factory(User::class, 1)->states('first-admin')->create();
|
|
|
|
factory(User::class, 1)->states('snipe-admin')->create();
|
|
|
|
factory(User::class, 3)->states('superuser')->create();
|
|
|
|
factory(User::class, 3)->states('admin')->create();
|
2017-10-24 16:55:59 -07:00
|
|
|
factory(User::class, 50)->states('view-assets')->create();
|
2016-09-29 22:20:49 -07:00
|
|
|
}
|
|
|
|
}
|