dimanche 19 avril 2015

Laravel call route action from URL

I'm creating a proxy layer in Laravel to decrypt an authentication token based on this article: http://ift.tt/1cKCwd3


I'm trying to figure out a good way to forward the requests though. I can catch a /proxy/some/other/route route and get the request method, params, headers and the /some/other/route string easily. I would like to match the route against all registered routes in Laravel and call the route action if it exists.


I could also simply forward the request by redirecting it, which would be fine, but this means the application would have to be bootstrapped twice per request which isn't as ideal.


Aucun commentaire:

Enregistrer un commentaire