-
Notifications
You must be signed in to change notification settings - Fork 97
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 #30 from specialtactics/chore/remove-legacy-fixure
Remove admin password, also make the credentials array a bit clearer
- Loading branch information
Showing
2 changed files
with
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,9 @@ class UserStorySeeder extends BaseSeeder | |
/** | ||
* Credentials | ||
*/ | ||
const ADMIN_CREDENTIALS = ['[email protected]', 'secret']; | ||
const ADMIN_CREDENTIALS = [ | ||
'email' => '[email protected]', | ||
]; | ||
|
||
public function runFake() | ||
{ | ||
|
@@ -18,7 +20,7 @@ public function runFake() | |
// Create an admin user | ||
factory(App\Models\User::class)->create([ | ||
'name' => 'Admin', | ||
'email' => static::ADMIN_CREDENTIALS[0], | ||
'email' => static::ADMIN_CREDENTIALS['email'], | ||
'primary_role' => $roles->where('name', 'admin')->first()->role_id, | ||
]); | ||
|
||
|
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