fix: check if command exists in DefaultRolesSeeder
This commit is contained in:
@@ -103,7 +103,11 @@ class DefaultRolesSeeder extends Seeder
|
||||
]);
|
||||
}
|
||||
|
||||
if ($this->command) {
|
||||
$this->command->info("Created default role: {$roleData['name']}");
|
||||
} else {
|
||||
echo "Created default role: {$roleData['name']}\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user