I have a Laravel 4 web app that uses domain routing groups like so:
Route::group(array('domain' => Config::get('config.DOMAIN_A')), ...
Basically, the app is deployed and hosted on multiple domains, but certain routes are only available on certain domains.
Is there any way to spoof the domain of the incoming request when I am developing on localhost? Such as in the App::before() function?
Edit:
I am using haproxy locally if that could be used to spoof the domain as well.
Aucun commentaire:
Enregistrer un commentaire