where status is null sql in laravel 1

where status is null sql in laravel

DB::table('users')	->whereNotNull('name')	->get();

Here is what the above code is Doing:
1. We’re using the DB facade to access the DB class.
2. We’re using the table method to specify the table we want to query.
3. We’re using the whereNotNull method to specify that we only want users with a name.
4. We’re using the get method to retrieve the results.

Similar Posts