Teren-app/database/seeders/DatabaseSeeder.php
Simon Pocrnjič 0f8cfd3f16 changes
2025-01-02 18:38:47 +01:00

34 lines
742 B
PHP

<?php
namespace Database\Seeders;
use App\Models\User;
use App\Models\Person\PersonType;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Support\Facades\Hash;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->create();
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
'password' => Hash::make("password")
]);
$this->call([
PersonSeeder::class,
SegmentSeeder::class,
ActionSeeder::class,
EventSeeder::class
]);
}
}