Answer the question
In order to leave comments, you need to log in
Why don't the Where/OrderBy methods work through the model?
In general, the WHERE and OrderBy methods do not work, the all method fortunately works. But for example, making a request with the necessary parameters does not work .... Help, please .. What could be the matter?
When hovering in PHPStorm, a notation is displayed that the method does not exist ...
Answer the question
In order to leave comments, you need to log in
Laravel IDE Helper.
What do you mean it doesn't work? Everything works, it's just that Laravel is written in such a way that the IDE will not see many methods directly.
While this won't help here either, the helper is only useful for facades. Here, the Builder is accessed via callStatic, so Storm will not see it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question