Route::group(array('domain' => '{account}.myapp.com'), function() { Route::get('/', function($account) {
since Marc vd M answers, but removes $ id from the close function of the close.
why use 'https://www.myapp.com'.'/'.$account , rather than 'https://www.myapp.com/'.$account
source share