Code: Select all
DB::raw("SUM(points) as game_points")
Aber game_points ist eine Zeichenfolge, unabhängig vom Typ der Spalte. (Es ist eine Ganzzahlspalte)
Auch wenn ich das tue:
Code: Select all
DB::raw("COUNT(id) as foo_bar")
Code: Select all
foo_bar