devnull Ψ
devnull Ψ

Reputation: 4029

Union operator in laravel eloquent

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?

Upvotes: 2

Views: 2917

Answers (1)

devnull Ψ
devnull Ψ

Reputation: 4029

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

docs

Upvotes: 2

Related Questions