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
Policy references are not linked when passing Gate::authorize() a model instance.
This works, create is linked to the expected class, ProgramPolicy:
Gate::authorize('create', Program::class)
This doesn't work, there's no link ($program is a Program model instance):
Gate::authorize('update', $program)
Vanilla setup, Program is a regular model, ProgramPolicy exists in the default location and has an update method with the default type hints, etc. Reproduced in two different apps.