Support the ongoing development of →
posted 7 years ago
Last updated 10 months ago.

I don't understand why you need to get values in route file.

In my case, I get those kind of parameters in Controllers.

$user_name = Input::get('name');
$age = Input::get('age');

Route file:

Route::get('people.php', array('as' => 'people', 'uses' => '[email protected]'));

or you may configure the url like this.

Route::get('people.php/{username}/{age}', array('as' => 'people/username/age', 'uses' => '[email protected]'));

How's that? You may select one of my suggestions.


Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

mehmet mehmet Joined 18 May 2014


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

Your logo here?

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

© 2023 - All rights reserved.