Files

41 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2025-10-16 14:22:46 +02:00
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
2025-11-27 09:26:43 +00:00
use Illuminate\Support\Facades\Hash;
2025-10-16 14:22:46 +02:00
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
2025-11-27 09:26:43 +00:00
// Create initial admin user without using factory (production-safe)
User::firstOrCreate(
['email' => 'admin@example.com'],
[
'name' => 'Admin User',
'email' => 'admin@example.com',
'password' => Hash::make('password'),
'email_verified_at' => now(),
]
);
2025-10-16 14:22:46 +02:00
2025-11-27 09:26:43 +00:00
// Create test user
User::firstOrCreate(
['email' => 'test@example.com'],
[
'name' => 'Test User',
'email' => 'test@example.com',
'password' => Hash::make('password'),
'email_verified_at' => now(),
]
);
2025-10-20 20:48:48 +02:00
// Note: Company and Transaction data is now synced from the backend
// via TransformDataPoolToProduction job, not seeded manually
2025-10-16 14:22:46 +02:00
}
}