From 210ea6d4feffdae9d18a3edab721dcb6b7daebd4 Mon Sep 17 00:00:00 2001 From: LT Date: Sun, 8 Dec 2024 14:27:07 +0300 Subject: [PATCH] fix: publish resource/page in provider/menu --- src/Laravel/src/Commands/MoonShineCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }