php - How to change URLs in a Site developed using Laravel? -
i have website being developed using laravel 4 freelance dev. while developer has developed site standard url's each page, want able change words in url suite each of target markets. example, developer made url of 1 page: www.site.com/public/city/vehicles
later, want able change www.site.com/rome/cars or www.site.com/sydney/bikes
however developer says wont possible later on change urls limitation in laravel. can please shed light on , how this?
why not possible ?? url can me made dynamic if want . using route
route::get('/city/{slug}/{slug}',array('as'=>'city.vehciles','uses'=>'yourcontroller@yourmethod'));
this output :
www.site.com/city/rome/cars //if public folder removed url . //here `rome` , `cars` dynamic , value comes per slug value database.
in above route slug
thing can me made dynamic . keep place add slug while adding vehicle in dashboard add vehicles.
also, if want explore more please see doc .
hope .
Comments
Post a Comment