mad-lawsuit/database/seeders/AdminSeeder.php
TheMaddax b7125cf2b7 Phase 4: Production deployment configuration
- Add Docker configuration (Dockerfile, docker-compose.yml)
- Add Nginx and Supervisor configuration
- Add deployment documentation (DEPLOYMENT.md)
- Complete Phase 3 data migration (63 entries, 63 docs, 28 subs)
- Add responsive PDF viewer component
- Fix date format to American (MM/DD/YYYY)
- Update typography to match v1.0
- Add admin dashboard with full CRUD operations
- Configure PostgreSQL with secure password
- Connect to caddy_network for reverse proxy
- Ready for production deployment
2025-12-17 19:12:32 -07:00

25 lines
583 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\AdminUser;
class AdminSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// Create default admin user
AdminUser::create([
'username' => 'admin',
'password' => 'password', // Will be auto-hashed by AdminUser model
]);
$this->command->info('Admin user created successfully!');
$this->command->info('Username: admin');
$this->command->info('Password: password');
}
}