Can anyone provide an edge case when EloquentBuilder::__call should not return forwardDecoratedCallTo? #14
Answered
by
macropay-solutions
macropay-solutions
asked this question in
Q&A
-
More details here: laravel/framework#56664 We are thinking of replacing forwardCallTo with forwardDecoratedCallTo in the eloquent builder's _call and make obsolete ![]() forwardDecoratedCallTo will return Eloquent Builder if the return of the function call from Query Builder is the same object as the Query Builder. protected function forwardDecoratedCallTo($object, $method, $parameters)
{
$result = $this->forwardCallTo($object, $method, $parameters);
return $result === $object ? $this : $result;
} |
Beta Was this translation helpful? Give feedback.
Answered by
macropay-solutions
Aug 22, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
macropay-solutions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
laravel/framework#56664 (comment)