What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-21 04:41:18
laravel select subquery
In addition to @delmadord's answer and your comments: Currently there is no method to create subquery in FROM clause, so you need to manually use raw statement, then, if necessary, you will merge all the bindings: $sub = Abc::where(..)->groupBy(..); ... Add solution