1

I'm running last version of PhpStorm and Laravel 5.6. Also I have the Laravel plugin enabled.

I have for example model Book. When I use ::where, ::find etc. PhpStorm yellows them out and tells that the method cannot be found in the model's class. How can I find this?

1

1 Answer 1

3

Due to laravel "magic" Ide have some hard time to figure out what's going on,

I recommend you to use this :

https://github.com/barryvdh/laravel-ide-helper

just follow the instruction and your ide will now have a better understanding of the framework.

You can also install some PHPStorm plugins related to laravel :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.