Sunday, March 5, 2017

Get all records value is not 1 in Laravel

How can I get all records from the table where status value is 0 or NULL on Laravel?

DB::table('categories')->where('status', '!=', 1) returns only records where status=0

P.S. I need multiple conditions here, so raw query is not so good choice.



via Gediminas

Advertisement