laravel eloquent WhereNotNull query example
In this article, We will explain to you how to use the WhereNotNull query in laravel(laravel where not null query). The laravel eloquent provides many types of eloquent methods.
The WhereNotNull method will return the not null data into the database. so you can see below the following example.
1 2 3 | $students = DB::table('students') ->whereNotNull('first_name') ->get(); |
Please follow and like us: