Add configs for User Seeder
This commit is contained in:
parent
78bcf18e63
commit
cec6a05284
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'email' => env('USER_EMAIL', 'admin@example.com'),
|
||||
'password' => env('USER_PASSWORD', 'admin'),
|
||||
];
|
|
@ -16,9 +16,9 @@ class UserSeeder extends Seeder
|
|||
public function run()
|
||||
{
|
||||
User::create([
|
||||
'email' => env('USER_EMAIL', 'admin@example.com'),
|
||||
'email' => config('init.email'),
|
||||
'email_verified_at' => now(),
|
||||
'password' => Hash::make(env('USER_PASSWORD', 'admin')),
|
||||
'password' => Hash::make(config('init.password')),
|
||||
'name' => 'Adrema Benutzer',
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue