2016-09-29 22:20:49 -07:00
|
|
|
<?php
|
|
|
|
|
2021-06-10 13:18:00 -07:00
|
|
|
namespace Database\Seeders;
|
|
|
|
|
2016-09-29 22:20:49 -07:00
|
|
|
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();
|
2021-06-10 13:17:44 -07:00
|
|
|
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();
|
2016-09-29 22:20:49 -07:00
|
|
|
}
|
|
|
|
}
|