Example #1
0
 /**
  * Display a list of person in a country.
  *
  * @param Request $request
  * @param string  $iso     ISO3166-2 country code
  *
  * @return Response
  */
 public function indexByCountry(Request $request, $iso)
 {
     $theCountry = $this->countries->byIso($iso);
     $countryId = $theCountry->id;
     return view('admin.people.index', ['people' => $this->people->byCountry($countryId), 'appRoles' => $this->appRoles->forAll(), 'h1' => 'People by country (' . $iso . ')']);
 }