Skip to content

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

Open
N1ebieski wants to merge 20 commits into
laravel:mainfrom
N1ebieski:Support-for-autocompletion-model-attributes-in-blade-files-#31
Open

Support for autocompletion model attributes and relations in blade files#353
N1ebieski wants to merge 20 commits into
laravel:mainfrom
N1ebieski:Support-for-autocompletion-model-attributes-in-blade-files-#31

Conversation

@N1ebieski

Copy link
Copy Markdown
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

N1ebieski commented Apr 11, 2025

Copy link
Copy Markdown
Contributor Author

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