Level 27
I’ve done this through middleware.
See the official documentation:
https://spatie.be/docs/laravel-permission/v6/basic-usage/teams-permissions
spatie/laravel-permissions, so I added setPermissionsTeamId(1) in its service provider's boot(), this service provider is auto-discovered by Laravelecho getPermissionsTeamId(), I get nullsetPermissionsTeamId(1) to my AppServiceProvider's boot(), the echo getPermissionsTeamId() will return 1What is happening?
Please or to participate in this conversation.