mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
24 lines
559 B
PHP
24 lines
559 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
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();
|
|
|
|
}
|
|
}
|