I\'ve set up a wildcard subdomain *.domain.com & i\'m using the following .htaccess:
Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HT
Laravel 4 has this functionality out of the box:
Route::group(array('domain' => '{account}.myapp.com'), function() { Route::get('user/{id}', function($account, $id) { // ... }); });
Source