|
|
@@ -19,8 +19,7 @@ public function index(): JsonResponse
|
|
|
$end = strtotime("+1 day", $start);
|
|
|
$list = SportModel::where("game_time", ">=", $start)
|
|
|
->where("game_time", "<", $end)
|
|
|
- ->makeHidden(['id'])
|
|
|
- ->get();
|
|
|
+ ->get()->makeHidden(['id']);
|
|
|
$count = SportModel::where("game_time", ">=", $start)
|
|
|
->where("game_time", "<", $end)->count();
|
|
|
return $this->success(['list' => $list, 'count' => $count]);
|