You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the Gate::define('viewPulse', fn() => ...) to define who can see Pulse. Because I use Laravel Nova and i need to check this permission rendering the menu i define this gate in de booting state of the app service provider.
Now I noticed the gate will not work in production because it is overwritten by the Pulse Service Provider in the function registerAuthorization().
A solution is checking if the ability already exists, like in this example
Pulse Version
v1.2.4
Laravel Version
11.15.0
PHP Version
8.2.4
Livewire Version
v3.5.2
Database Driver & Version
No response
Description
I used the
Gate::define('viewPulse', fn() => ...)
to define who can see Pulse. Because I use Laravel Nova and i need to check this permission rendering the menu i define this gate in de booting state of the app service provider.Now I noticed the gate will not work in production because it is overwritten by the Pulse Service Provider in the function
registerAuthorization()
.A solution is checking if the ability already exists, like in this example
Steps To Reproduce
define the gate in the $this->app->booting(fn () => ...)); in the app service provider. It will be overwritten.
The text was updated successfully, but these errors were encountered: