mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-30 07:59:50 -08:00
25 lines
554 B
PHP
25 lines
554 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
User::truncate();
|
|
User::factory()->count(1)->firstAdmin()->create();
|
|
User::factory()->count(1)->snipeAdmin()->create();
|
|
User::factory()->count(3)->superuser()->create();
|
|
User::factory()->count(3)->admin()->create();
|
|
User::factory()->count(50)->viewAssets()->create();
|
|
}
|
|
}
|