Home
LuminEe edited this page Aug 16, 2017
·
3 revisions
I build this to rewrite Laravel controller dispatcher, so as to change namespace of route controller according to the version in header.
- You just setting in the config file and build up your version controller, then it can work.
- You are not have to care about the route file, and full version route is not necessary.
- It can point to the nearest version although the given version is much greater.
You need set your controller namespace like: App\Http\Controllers\User\v1_0;