The WITH clause is an optional clause used to contain one or more common table expressions (CTE) where each CTE defines a temporary table that exists for the duration of the query. Each subquery in ...
I've been reading through \Illuminate\Database\Query\Builder and other relevant files but have been unable to see a way to append or wrap any SQL with the WITH clause for subquery factoring. At the ...