diff --git a/config/app.php b/config/app.php index 8f63418fa..d670df243 100644 --- a/config/app.php +++ b/config/app.php @@ -16,4 +16,10 @@ 'force_https' => env('FORCE_HTTPS', false), + 'admin_name' => env('ADMIN_NAME', 'Admin'), + + 'admin_email' => env('ADMIN_EMAIL', 'admin@example.com'), + + 'admin_password' => env('ADMIN_PASSWORD', 'password'), + ]; diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index dd248ec9e..67b418aed 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -26,10 +26,10 @@ public function up(): void }); User::create([ - 'name' => 'Admin', - 'email' => 'admin@example.com', + 'name' => config('app.admin_name'), + 'email' => config('app.admin_email'), 'email_verified_at' => now(), - 'password' => Hash::make('password'), + 'password' => Hash::make(config('app.admin_password')), 'role' => UserRole::Admin, ]); }