T
T
Troodi Larson2019-01-25 13:56:45
Laravel
Troodi Larson, 2019-01-25 13:56:45

Can't make this request in Eloquent?

Good afternoon! I googled something, searched, but as a result did not find the necessary method for building a query identical to Sql.

SELECT * FROM es_proxies WHERE es_proxies.proxy NOT IN (SELECT proxy FROM es_proxy_useds)

If you use table, then it turns out that you can take one table. With joins, such a request could not be cranked out. With DB::raw it didn’t work out either, but how can you actually do this then?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question