Why dot you use the DB::raw and copy and paste your query, also maybe i recomend to create a view ,using that query and then you can calling using DB::raw .
PD : prefix the view using some convention like v_nameof thevirtualtable
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community