Support the ongoing development of Laravel.io →
Requests Eloquent Views
Last updated 2 years ago.
0
// routes.php
Route::get('house/{id}/{town}/{neighborhood}', ['as' => '', 'uses' => 'ExampleController@show']);

// Controller
public function show($id, $town, $neighborhood) {
    # code
}
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Thank you! Yes I can retreive data. So I will try your proposal. And let you know if this is the solution I needed.

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.