vendredi 30 septembre 2016

URL to `/` within a subdomain - laravel

I use subdomain functionality in Laravel 5.3. My main app address has format http://example.com When within a subdomain such as http://dev.example.comI use same templates for header.

problem

as a result, the head of my page, which contains url to homepage, defined in blade as renders as http://dev.example.com, while desired is http://example.com

to do

is there any good practice to get make Laravel show the main domain URLs? I could add a variable in controller used for subdomain purposes, but it seems not really professional way to solve the issue.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2cG1gTs
via IFTTT

Aucun commentaire:

Enregistrer un commentaire