Skip to content
Advertisement

How to do this in laravel using Laravel subquery with groupby and where

JavaScript

Advertisement

Answer

You can use closure as the second parameter of the whereIn method.

JavaScript
JavaScript

Result

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement