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

laravel query builder , in query


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -