Answer the question
In order to leave comments, you need to log in
Why doesn't PhpStorm see query builder snippets in models?
If you get a constructor object like this:
DB::table('articles')
then you can list the methods of the Builder object (constructor), but if you use models, the same constructor methods are available, but there are no hints.
In the picture, Spanish the Tag model, and the constructor method are underlined because not found, but everything works.
Why is this happening and is it possible to include Builder hints in models?
I am using laravel 5.8
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question