When testing Laravel applications that use multiple domains tests get tricky. Imagine an application with the following structure:
* API: api.domain.com
* Backend: manage.domain.com
* Client domains: client1domain.com,client2domain.com, etc..
Route::domain(config('app.domains.api'))->group(function() {
Route::get('/', 'Api\ApiIndexController@index')->