Task 6 - average of the field

This commit is contained in:
PovilasKorop
2021-11-22 08:20:49 +02:00
parent 4707c593a0
commit a3538e1014
10 changed files with 166 additions and 1 deletions
@@ -0,0 +1,16 @@
<?php
namespace App\Http\Controllers;
use App\Models\Country;
class CountryController extends Controller
{
public function index()
{
// TASK: load the relationship average of team size
$countries = Country::all();
return view('countries.index', compact('countries'));
}
}