Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel retrieving aggregates

$count = Flight::where('active', 1)->count();

$max = Flight::where('active', 1)->max('price');
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Laravel #retrieving #aggregates
ADD COMMENT
Topic
Name
7+7 =