We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbd7ea3 + a9813c2 commit 2236fa9Copy full SHA for 2236fa9
app/Http/Controllers/CommunityController.php
@@ -17,13 +17,7 @@ public function index(UserFilters $filters)
17
return redirect('community?country_iso='.$country_iso);
18
}
19
20
- $ambassadors = User::role('ambassador')
21
- ->filter($filters)
22
- ->whereNotNull('avatar_path')
23
- ->whereNotNull('bio')
24
- ->whereNotNull('city_id') // Ensure city is set
25
- ->with('city') // Load city details
26
- ->get();
+ $ambassadors = User::role('ambassador')->filter($filters)->whereNotNull('avatar_path')->whereNotNull('bio')->paginate(10);
27
28
$teachers = User::role('leading teacher')->where('approved', 1)->with('city')->get();
29
0 commit comments