Fixed undefined variable

This commit is contained in:
bwilliams committed 2023-09-11 09:10:35 +01:00
1 parent 963c642b30
commit 2996d4cd33
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ class EnableAuditer extends BaseSeed
*/
protected function saveRoles(array &$roles)
{
foreach ($roles as $role) {
foreach ($roles as $slug => $role) {
// Trying to find if the role already exist
$existingRole = Role::where(['slug' => $role->slug])->first();