diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 9e4bd48..532a642 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -955,7 +955,7 @@ class ModelsCommand extends Command */ protected function checkForCustomLaravelCasts(string $type): ?string { - if (!class_exists($type)) { + if (!class_exists($type) || !interface_exists(CastsAttributes::class)) { return $type; }