Skip to content

Commit

Permalink
Update CountryController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldFon authored Aug 17, 2024
1 parent ee75ee9 commit b4a385f
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::withAvg('teams','size');
$countries = Country::withAvg('teams','size')->get();

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

0 comments on commit b4a385f

Please sign in to comment.