Why Eloquent Builder methods returns static? #46291
Unanswered
localusercamp
asked this question in
Q&A
Replies: 2 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
6 replies
-
I opened an issue #46292 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found that Illuminate\Database\Eloquent\Builder methods
@return
phpDoc annotations contains bothModel
andstatic
type or (Collection
andstatic[]
). Why it so? When builder can return array of queries fromget()
call?Beta Was this translation helpful? Give feedback.
All reactions