Skip to content

Support for autocompletion model attributes and relations in blade files #353

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 13 commits into
base: main
Choose a base branch
from

Conversation

N1ebieski
Copy link
Contributor

This PR adds support for autocompletion model attributes and relations in blade files.

It works identically to #334, tries to find a model by variable's name using Name, name, camelName and snake_name.

Works with chaining with relations:

autocompletion2

Works with another functions:

autocompletion3

autocompletion4

Depends on laravel/vs-code-php-parser-cli#17 and currently is highly experimental so needs much more testing.

@N1ebieski N1ebieski marked this pull request as ready for review March 30, 2025 12:59
@N1ebieski
Copy link
Contributor Author

N1ebieski commented Apr 11, 2025

I've added an additional completion for model or collection name (in plural):

model_completion

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.

1 participant