-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from daydevelops/master
moved admin credentials to .env file from seeder
- Loading branch information
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,11 @@ | |
// Super Admin | ||
'super_admin' => env('APP_SUPER_ADMIN') ?: 1, | ||
|
||
// Admin Credentials | ||
'admin_name' => env('ADMIN_NAME') ?: 'admin', | ||
'admin_email' => env('ADMIN_EMAIL') ?: '[email protected]', | ||
'admin_password' => env('ADMIN_PASSWORD') ?: 'admin', | ||
|
||
// Default Avatar | ||
'default_avatar' => env('DEFAULT_AVATAR') ?: '/images/default.png', | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,9 @@ public function run() | |
{ | ||
$users = [ | ||
[ | ||
'name' => 'admin', | ||
'email' => '[email protected]', | ||
'password' => Hash::make('admin'), | ||
'name' => config('blog.admin_name'), | ||
'email' => config('blog.admin_email'), | ||
'password' => Hash::make(config('blog.admin_password')), | ||
'status' => true, | ||
'is_admin' => true, | ||
'confirm_code' => str_random(64), | ||
|