Как получить top_area в заказе Laravel
$modelName->all()->groupBy('article_id')->sortByDesc('occurrences')->take(5);
Worried Worm
$modelName->all()->groupBy('article_id')->sortByDesc('occurrences')->take(5);