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
It would be amazing if policies were referenced for finding where specific policies are used.
Meaning a function like view inside a policy has a reference to everywhere it is used.
class ModelPolicy
{
publicfunctionview(User$user) {}
}
Gate::Authorize("view", [Model::class]);
This would make it much easier to change policies without hunting down every authorize and checking if it references the correct policy
The text was updated successfully, but these errors were encountered:
Feature Description
It would be amazing if policies were referenced for finding where specific policies are used.
Meaning a function like view inside a policy has a reference to everywhere it is used.
This would make it much easier to change policies without hunting down every authorize and checking if it references the correct policy
The text was updated successfully, but these errors were encountered: