Update PlaceController, fixes #2017

This commit is contained in:
Daniel Supernault 2020-02-16 01:28:48 -07:00
parent f400c632f0
commit dd5fa3a49d
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -33,7 +33,7 @@ class PlaceController extends Controller
public function directoryCities(Request $request, $country)
{
$country = urldecode($country);
$country = ucfirst(urldecode($country));
$places = Place::whereCountry($country)
->orderBy('name', 'asc')
->distinct('name')