mirror of
https://github.com/flarum/core.git
synced 2025-07-28 12:10:51 +02:00
lists → pluck for Laravel 5.5
This commit is contained in:
@@ -92,7 +92,7 @@ class AddStatisticsData
|
|||||||
->selectRaw('COUNT(id) as count')
|
->selectRaw('COUNT(id) as count')
|
||||||
->where($column, '>', new DateTime('-24 months'))
|
->where($column, '>', new DateTime('-24 months'))
|
||||||
->groupBy('time_group')
|
->groupBy('time_group')
|
||||||
->lists('count', 'time_group');
|
->pluck('count', 'time_group');
|
||||||
|
|
||||||
// Now that we have the aggregated statistics, convert each time group
|
// Now that we have the aggregated statistics, convert each time group
|
||||||
// into a UNIX timestamp.
|
// into a UNIX timestamp.
|
||||||
|
Reference in New Issue
Block a user