diff --git a/.app.env.example b/.app.env.example index 756f9cd8..f8014d2a 100644 --- a/.app.env.example +++ b/.app.env.example @@ -20,3 +20,6 @@ MYSQL_PASSWORD=secret_db_password PUSHER_APP_HOST=socketi WORKERS=5 + +USER_EMAIL=admin@example.com +USER_PASSWORD=admin diff --git a/database/seeders/UserSeeder.php b/database/seeders/UserSeeder.php index 23c8fe6a..8cd35d75 100644 --- a/database/seeders/UserSeeder.php +++ b/database/seeders/UserSeeder.php @@ -16,9 +16,9 @@ class UserSeeder extends Seeder public function run() { User::create([ - 'email' => 'admin@example.com', + 'email' => env('USER_EMAIL', 'admin@example.com'), 'email_verified_at' => now(), - 'password' => Hash::make('admin'), + 'password' => Hash::make(env('USER_PASSWORD', 'admin')), 'name' => 'Adrema Benutzer', ]); }