Skip to content
Snippets Groups Projects
Commit 203026c8 authored by fickleheart's avatar fickleheart
Browse files

Oops??

parent 45446b34
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ class Course extends Model
public function scopeWithReplayCount($query, Carbon $since = null)
{
$query->select('courses.*', DB::raw('COUNT(replays.*) as replay_count'))
$query->select('courses.*', \DB::raw('COUNT(replays.*) as replay_count'))
->leftJoin('maps', 'maps.course_id', '=', 'courses.id')
->leftJoin('replays', 'replays.map_id', '=', 'maps.id');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment