// routes.php
Route::get('house/{id}/{town}/{neighborhood}', ['as' => '', 'uses' => 'ExampleController@show']);
// Controller
public function show($id, $town, $neighborhood) {
# code
}
can you retrieve data from database in laravel ? if yes...just an ordinary route setup you will have to do...
Route('houseinfo/{town}/{neighborhood}/{street}/{houseID}',function($town,$neighborhood,$street,$houseID){
//do stuff here
});
You might want to see this Routing Parameter in Laravel 4 or this Dynamic Layout in Laravel 4
Thank you! Yes I can retreive data. So I will try your proposal. And let you know if this is the solution I needed.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community