Closed vinhais closed 3 years ago
Hi,
That's possible, by conditionally registering commands. For example:
Spotlight::registerCommandIf(request()->routeIs('dashboard'), CommandTwo::class);
Spotlight::registerCommandIf(request()->routeIs('profile.*'), CommandThree::class);
Through config, is it not possible?
@vinhais nope, you will have to register the commands in your AppServiceProvider
for example when using this syntax.
Hi, It would be interesting to have something that allows some commands to appear only on one route, for example:
Command 1 -> all Command 2 -> dashboard Command 3 -> profile.*