We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be7a05b + ecc302f commit 860e1d3Copy full SHA for 860e1d3
src/Actions/RegisterPages.php
@@ -20,6 +20,10 @@ public static function boot(Panel $panel)
20
*/
21
$page = new $pageClass;
22
23
+ if (self::hasParameters($page::getSlug())) {
24
+ continue;
25
+ }
26
+
27
if (method_exists($page, 'shouldRegisterSpotlight') && $page::shouldRegisterSpotlight() === false) {
28
continue;
29
}
@@ -43,4 +47,9 @@ public static function boot(Panel $panel)
43
47
Spotlight::$commands[$command->getId()] = $command;
44
48
45
49
50
51
+ private static function hasParameters(string $slug): bool
52
+ {
53
+ return preg_match('/{[^}]+}/', $slug) === 1;
54
46
55
0 commit comments