Skip to content

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

@BlackstoneOneCoder

Description

@BlackstoneOneCoder

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions