Answers for "laravel count query"

PHP
4

group by laravel

$user_info = DB::table('usermetas')
                 ->select('browser', DB::raw('count(*) as total'))
                 ->groupBy('browser')
                 ->get();
Posted by: Guest on August-06-2020
7

laravel not in query

DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
Posted by: Guest on September-26-2020
7

laravel wher in

$users = DB::table('users')
                    ->whereIn('id', [1, 2, 3])
                    ->get();
Posted by: Guest on April-30-2020
0

laravel select count

$count = DB::table('category_issue')->count();
Posted by: Guest on July-06-2020
1

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

$users = DB::table('users')->get();
Posted by: Guest on October-22-2020

Browse Popular Code Answers by Language