Add setting for seeder
This commit is contained in:
parent
0c45e1b2f4
commit
215d08aeeb
|
@ -20,3 +20,6 @@ MYSQL_PASSWORD=secret_db_password
|
||||||
PUSHER_APP_HOST=socketi
|
PUSHER_APP_HOST=socketi
|
||||||
|
|
||||||
WORKERS=5
|
WORKERS=5
|
||||||
|
|
||||||
|
USER_EMAIL=admin@example.com
|
||||||
|
USER_PASSWORD=admin
|
||||||
|
|
|
@ -16,9 +16,9 @@ class UserSeeder extends Seeder
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
User::create([
|
User::create([
|
||||||
'email' => 'admin@example.com',
|
'email' => env('USER_EMAIL', 'admin@example.com'),
|
||||||
'email_verified_at' => now(),
|
'email_verified_at' => now(),
|
||||||
'password' => Hash::make('admin'),
|
'password' => Hash::make(env('USER_PASSWORD', 'admin')),
|
||||||
'name' => 'Adrema Benutzer',
|
'name' => 'Adrema Benutzer',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue