Check if CastsAttributes exists

This commit is contained in:
Barry vd. Heuvel
2020-04-22 11:55:33 +02:00
committed by GitHub
parent a233d5bd5a
commit 1b611d7f80
+1 -1
View File
@@ -955,7 +955,7 @@ class ModelsCommand extends Command
*/ */
protected function checkForCustomLaravelCasts(string $type): ?string protected function checkForCustomLaravelCasts(string $type): ?string
{ {
if (!class_exists($type)) { if (!class_exists($type) || !interface_exists(CastsAttributes::class)) {
return $type; return $type;
} }