C
C
Cavin March2017-03-08 16:31:06
Laravel
Cavin March, 2017-03-08 16:31:06

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 ...
01e73ea122324302bb88866b85ec187d.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2017-03-08
@ForbsmC

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 question

Ask a Question

731 491 924 answers to any question