In MySQL subqueries documentation there's an exmaple of subquery:
SELECT ... FROM (subquery) [AS] name ...
Here's the raw query which I want to transform:
select SUBQUERY_NAME.* from (select id, name from items) AS SUBQUERY_NAME
Is there any way to do this in Laravel Query Builder without using DB::raw()
?