Separate policies for different panels
Is there a way to separate policies for each panel?
/App/Policies/Customer
/App/Policies/Admin
With nova i was able to do this in the boot method of AuthServiceProvider using Nova::serving.
2 Replies
I'm not sure, but have you tried registering the policies manually from the
register()
method of a Panel?Yes, you can override the default policy name guessing algo and build your own
this will scope each model to its own policy based on the current tenant