php - Get the specified record and filter laravel eloqouent -
below code records 'department'
equal 'admin'
(working):
$notification = notification::where('department', '=', "admin")->get();
now want records 'department'
equal 'admin'
while excluding records 'department'
equal 'all'
. ideas, clues achieve using laravel
's smart eloqouent?
hope !! use and
phrase in query
include department = all
Comments
Post a Comment