Passed
Push — master ( d700b0...2a2eb6 )
by Thomas
12:55 queued 10s
created
app/Http/Controllers/CourseController.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,8 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function search()
57 57
     {
58
-        return QueryBuilder::for(Course::class)->where('campus_id', 1)
58
+        return QueryBuilder::for(Course::class) {
59
+            ->where('campus_id', 1)
59 60
         ->with('room')->withCount('events')->withCount('children')->withCount('enrollments')
60 61
         ->allowedFilters([
61 62
             'name',
@@ -64,5 +65,6 @@  discard block
 block discarded – undo
64 65
             AllowedFilter::custom('searchable_levels', new FiltersSearchableLevels),
65 66
             'teacher_id', ])
66 67
         ->get();
68
+        }
67 69
     }
68 70
 }
Please login to merge, or discard this patch.