Closed adddz closed 3 years ago
Hi @adddz,
That's correct, there's a PR to resolve this and will be available soon https://github.com/livewire-ui/spotlight/pull/15
Hi @adddz
You can now use the shouldBeShown
method to do this:
Thank you so much! Could you please port this feature to the PHP 7.4 version as well, please?
The documentation mentions that you can register the command in the
boot()
method of theAppServiceProvider
file.This is not working because
$user
orauth()->user()
cannot be accessed during theboot()
method.Any ideas on how to conditionally register commands based on the user?