mardi 4 octobre 2016

Change URL of request in Middleware [Laravel 5.3]

I want to redirect my site to a subdomain depends of the browser language.

I mean if you go to

example.com

the middleware redirects to

en.example.com

If your browser language it's English.

So, how I change the $request in the middleware to redirect to the subdomain?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire