environment('local', 'testing')) { throw new \RuntimeException('HOMEOS_ADMIN_PASSWORD must be set to seed the admin account outside local/testing.'); } $adminPassword = 'homeos-dev'; } User::updateOrCreate( ['email' => env('HOMEOS_ADMIN_EMAIL', 'admin@homeos.local')], [ 'name' => env('HOMEOS_ADMIN_NAME', 'Admin'), 'password' => Hash::make($adminPassword), 'email_verified_at' => now(), ], ); // Demo household is development-only — never inject mock devices/warnings into // a real (production) deployment via `migrate --seed`. if (app()->environment('local', 'testing')) { $this->call(DemoHomeSeeder::class); } } }