Laravel retrieving aggregates

46

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

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

Comments

Submit
0 Comments