Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Policy reference for easier policy editing #204

Open
BlackstoneOneCoder opened this issue Jan 16, 2025 · 0 comments
Open

[Feature]: Policy reference for easier policy editing #204

BlackstoneOneCoder opened this issue Jan 16, 2025 · 0 comments

Comments

@BlackstoneOneCoder
Copy link

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.

class ModelPolicy
{
  public function view(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant