Skip to content

Commit

Permalink
Update CountryController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Sep 14, 2024
1 parent 1460534 commit 1cac42e
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');

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

0 comments on commit 1cac42e

Please sign in to comment.