Laravel – Error with union and cursorPaginate
I am trying to do union with DB query builder because with models is not working the union with paginate/cursorPaginate. I have this but give an SQL error because Laravel is not building the right query (maybe my fault, I…