you can use this Route:
Route::get('keywords/{countryName}', 'KeywordsController@country');
Route::get('keywords/{countryName}/{cityName}', 'KeywordsController@city');
for more information see laravel documentation
livana,
Thanks for the quick help, although I should clarify that I got to this point, but I'm lost when it comes to setting up the controller correctly for anything outside of basic static views. I've gone over the route parameters info in the laravel documentation but I'm completely lost reading it and how to set it up properly.
I was able to find a solution that will at least create the view and allow me to echo the parameter using this
Route::get('keywords/{countryname}', function($countryname)
{
$data['countryname'] = $countryname;
return View::make('country', $data);
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community