Add setting for seeder
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Philipp Lang 2023-08-07 21:32:56 +02:00
parent 0c45e1b2f4
commit 215d08aeeb
2 changed files with 5 additions and 2 deletions

View File

@ -20,3 +20,6 @@ MYSQL_PASSWORD=secret_db_password
PUSHER_APP_HOST=socketi
WORKERS=5
USER_EMAIL=admin@example.com
USER_PASSWORD=admin

View File

@ -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',
]);
}