From 1b611d7f806c178a5b5b6956d06b00dfa0b88918 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 22 Apr 2020 11:55:33 +0200 Subject: [PATCH] Check if CastsAttributes exists --- src/Console/ModelsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }