Big commit whatever

This commit is contained in:
2026-06-04 12:44:22 +02:00
parent ee1a87f125
commit 4fb7b1691c
133 changed files with 26137 additions and 1097 deletions
@@ -0,0 +1,31 @@
<?php
namespace Database\Seeders;
use App\Models\Role;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
use WithoutModelEvents;
public function run(): void
{
$adminRole = Role::firstOrCreate(['name' => 'admin']);
$userRole = Role::firstOrCreate(['name' => 'user']);
User::factory()->create([
'name' => 'Admin',
'email' => 'admin@example.com',
'role_id' => $adminRole->id,
]);
User::factory()->create([
'name' => 'Test User',
'email' => 'test@example.com',
'role_id' => $userRole->id,
]);
}
}