Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

limit query laravel

$report = DB::table('orders')
                ->selectRaw('count(id) as number_of_orders, customer_id')
                ->groupBy('customer_id')
                ->havingBetween('number_of_orders', [5, 15])
                ->get();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #limit #query #laravel
ADD COMMENT
Topic
Name
9+6 =