Replies: 2 comments
-
It doesn't really matter (just tested it). the scope method is handled by magic method and then the Builder instance is returned to you even if you did not return it inside. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not necessarily. You can use return or void, but if you want better testing in isolation I'd recommend using types and returning. |
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.
-
Hi,
In Local Scopes doc, one function returns the
$query
, the other, not.which is correct?
should any scope function return
$query
Beta Was this translation helpful? Give feedback.
All reactions