mirror of
https://github.com/flarum/framework.git
synced 2025-04-01 05:05:14 +08:00
lists → pluck for Laravel 5.5
This commit is contained in:
parent
a1fe93f355
commit
cd2d56fd99
@ -92,7 +92,7 @@ class AddStatisticsData
|
||||
->selectRaw('COUNT(id) as count')
|
||||
->where($column, '>', new DateTime('-24 months'))
|
||||
->groupBy('time_group')
|
||||
->lists('count', 'time_group');
|
||||
->pluck('count', 'time_group');
|
||||
|
||||
// Now that we have the aggregated statistics, convert each time group
|
||||
// into a UNIX timestamp.
|
||||
|
Loading…
x
Reference in New Issue
Block a user