Take a look at the documentation. There is a whereNotExists on the builder class.
http://laravel.com/api/5.1/Illuminate/Database/Query/Builder.html#method_whereNotExists
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am try to do this;
select records from table where value A does not exist in table B
I see I can do the opposite with a whereExists statement.
Is there such a thing as a whereDoesNotExist?
@Tenzing take a look at this example: http://stackoverflow.com/questions/22409469/laravel-4-where-not-exists
Please or to participate in this conversation.