Skip to content

Support for links for policies with variable as 2nd argument #334

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

N1ebieski
Copy link
Contributor

@N1ebieski N1ebieski commented Mar 15, 2025

Fixes #264

This PR adds support for links for policies with variable as 2nd argument.

Before:

before

After:

after

The analyzeParam function tries to find a model's policy by variable's name using Name, name, camelName and snake_name.

This PR depends on laravel/vs-code-php-parser-cli#14

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

Successfully merging this pull request may close these issues.

[Bug]: Policy references not linked using Gate::authorize() with model instance
1 participant