Skip to content
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

Intelephense: method does not exist for models #1

Closed
ermand opened this issue May 20, 2023 · 3 comments
Closed

Intelephense: method does not exist for models #1

ermand opened this issue May 20, 2023 · 3 comments

Comments

@ermand
Copy link

ermand commented May 20, 2023

Hello 👋🏻
First of all, thank you for this start for LazyVim + Laravel. I have used LazyVim for a while now but now I have to work on a Laravel project and checking on how to configure it. I came across your repo and really appreciate your sharing 😃

So far it is working mostly Ok for me, apart of the issue for intelephense not recognising some methods such as Model::create. I do have the license for intelephense.
I was wondering if you have this issue as well, and if YES, did you find a way to solve it?

Thank you in advance 😃

Example
image

@ermand ermand closed this as completed May 20, 2023
@ermand
Copy link
Author

ermand commented May 20, 2023

I fixed it by installing https://github.com/barryvdh/laravel-ide-helper and running php artisan ide-helper:models 😃

@kauffinger
Copy link
Owner

Great find, there is a lot of small things that are sometimes needed due to "Laravel Magic"
Do you mind sharing what version of Laravel you are on? I remember this being an issue once, but I have not encountered it with our current projects - I suspect newer versions of Laravel have addressed this.

Thanks for bringing it to my attention, I will put a note in the README :)

@ermand
Copy link
Author

ermand commented May 21, 2023

Yes, you are totally right, it's working OK with newer versions of Laravel +10. The project that I currently jumped into is in Laravel 8 and it looks like it was needed there to have the laravel-id-helper package installed 😃

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

No branches or pull requests

2 participants