diff --git a/src/Laravel/src/Commands/MoonShineCommand.php b/src/Laravel/src/Commands/MoonShineCommand.php index 17262a2c7..db27d6451 100644 --- a/src/Laravel/src/Commands/MoonShineCommand.php +++ b/src/Laravel/src/Commands/MoonShineCommand.php @@ -58,7 +58,7 @@ private static function addResourceOrPageTo(string $class, string $to, bool $isP $content = str(file_get_contents($to)); - if ($content->contains($class)) { + if ($content->contains('\\'.$class)) { return; }