Support the ongoing development of Laravel.io →
Requests Database Views
Last updated 2 years ago.
0

you can use this Route:

Route::get('keywords/{countryName}', 'KeywordsController@country');
Route::get('keywords/{countryName}/{cityName}', 'KeywordsController@city');

for more information see laravel documentation

Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

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);
});
Last updated 2 years ago.
0

the controller syntax cant find it

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.