snipe-it/database/seeds/UserSeeder.php

23 lines
558 B
PHP
Raw Normal View History

<?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();
factory(User::class, 50)->states('view-assets')->create();
}
}