As we use FIND_IN_SET to search in comma separated values in Laravel like:
->whereRaw('FIND_IN_SET(2,sent_mail_ids)')
But now I want to get those results which do not exist in comma separated values. To do this we use NOT FIND_IN_SET in MySQL, but how to use this in Laravel?
whereRaw() allows you to add any arbitrary SQL code to your query - in order to reverse the constraint simply use the same query you'd use in raw SQL:
or another variation of this constraint: