Laravel Eloquent Union query

So I have the following query: $a = Model::where('code', '=', $code) ->where('col_a', '=' , 1) ->orderBy(DB::raw('FIELD(layout, "normal", "split", "flip", "double-faced", "") ASC, layout')) $b = Model::where('code', '=', $code) ->where('col_b', '='…

1 Comment