2

How can I use sql UNION operator in eloquent ORM? I know I can use it in Illuminate\Database\Query\Builder , but I want to do it with eloquent. I couldn't find anything about it in documentation neither in google. is it possible to do it?

devnull Ψ
  • 3,779
  • 7
  • 26
  • 43

1 Answers1

2

you can use union() method in eloquent in the same way as its in Illuminate\Database\Query\Builder

docs

devnull Ψ
  • 3,779
  • 7
  • 26
  • 43