disable existing user check to check the full functionality of the seeder
This commit is contained in:
parent
e9d688d5ee
commit
3f3b782e60
1 changed files with 4 additions and 4 deletions
|
|
@ -14,11 +14,11 @@ class RootUserSeeder extends Seeder
|
|||
public function run(): void
|
||||
{
|
||||
try {
|
||||
if (User::where('id', 0)->exists()) {
|
||||
echo "\n INFO Root user already exists. Skipping creation.\n\n";
|
||||
// if (User::where('id', 0)->exists()) {
|
||||
// echo "\n INFO Root user already exists. Skipping creation.\n\n";
|
||||
|
||||
return;
|
||||
}
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (! env('ROOT_USER_EMAIL') || ! env('ROOT_USER_PASSWORD')) {
|
||||
echo "\n ERROR ROOT_USER_EMAIL and ROOT_USER_PASSWORD environment variables are required for root user creation.\n\n";
|
||||
|
|
|
|||
Loading…
Reference in a new issue