php - Laravel 5.1 - How to dynamically prefix all registered routes -


tl;dr: how prefix -already registered- laravel routes?

details: - large laravel 5.1 application third-party packages, each register it's own routes. - multilingual support, routes have prefixed, without modifying these third-party packages. - know in laravel 5.1 router service being bound before custom service providers being called, if router rebound application have detached router. - how prefix registered routes? - if no straight forward solution, in other words: how replace default \illuminate\routing\router\router::prefix() seems possible solution..

you have posted no code snippet of attempt, seems looking route groups, allows prefix, use middlewares , other stuff bunch of defined routes.

if still need add logic routing class may wish extend it.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -