Saturday, 15 February 2014

php - Laravel Routing Database -



php - Laravel Routing Database -

i want save page info in database url term can shown in url when page going access via url. eg. consider have website name www.example.com have page in site www.example.com/about-us.

now want save details of page in database title, description , url_name if update content of page , set url_name "something-about-us".

when accessing link website us. should redirect page url www.example.com/something-about-us instead of previous url www.example.com/about-us.

how can create kind of database saved routes in laravel?

thanks help in advanced.

here thought. don't think laravel provides such solution problem, though not 100% percent.

what can rewrite own route file. firstly, save info dynamic routes in database , when updated, create sure related database entries modified accordingly.

secondly, when requesting route, search database , homecoming url parameter redirect.

i afraid have build apis using laravel. if have question, ready help.

php database laravel routing

No comments:

Post a Comment