Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

developer_tech's avatar

Laravel Complex query in Eloquent

Select date,count from ( Select * from A Union Select * from B) As C group by date order by date

How to convert this to laravel .

"Select * from A Union Select * from B" this part is done.

Self::select()->union("Select * from B");

0 likes
1 reply

Please or to participate in this conversation.