Skip to content

Commit

Permalink
Update CountryController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Apr 22, 2024
1 parent a27dbe5 commit 4f3f4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/CountryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CountryController extends Controller
public function index()
{
// TASK: load the relationship average of team size
$countries = Country::all();
$countries = Country::withAvg('teams','size')->get();

return view('countries.index', compact('countries'));
}
Expand Down

0 comments on commit 4f3f4f8

Please sign in to comment.