fix: check if command exists in DefaultRolesSeeder

This commit is contained in:
2026-06-11 22:14:37 -05:00
parent e6111e0a0e
commit f5f0eee857

View File

@@ -103,7 +103,11 @@ class DefaultRolesSeeder extends Seeder
]); ]);
} }
if ($this->command) {
$this->command->info("Created default role: {$roleData['name']}"); $this->command->info("Created default role: {$roleData['name']}");
} else {
echo "Created default role: {$roleData['name']}\n";
}
} }
} }
} }