I'm trying to make a query where I use multiple whereNotIn arrays. For some reason, they block each other and ignores the other query parameters.
Any clues on how to solve this?
$products = Products::orderBy('id','DESC') ->where('status', '=', 4) ->whereNotIn('category', $excluded) ->whereNotIn('location', ['New York', 'Boston', 'Washington, DC', 'Charlotte']) ->take(400) ->get();
Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.