I guess your city route is after the home route, since there is the city? (question mark, making it optional)
If it would be before, just / would pass the condition and go to city
Generally, i think yes, just remove the question mark, and you're good to go, if URI just having one parameter would be city,
Something else would be '/something/{city}' or '/{city}/something'
I guess first thing in your controller is checking for 1 ocurrence where city = $city, and if not, redirect to your not found page...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community