Skip to content

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