Add UserSeeder
This commit is contained in:
parent
49e4e3976d
commit
1413c48c6c
19
database/seeders/UserSeeder.php
Normal file
19
database/seeders/UserSeeder.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class UserSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
//
|
||||
User::factory(15)->create();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user