http://stackoverflow.com/questions/1860 ... in-laravel
$appRoutes = function() {
Route:: ... Routes);
subdomain route
Re: subdomain route
https://laravel.com/docs/5.4/routing#ro ... in-routing
代碼: 選擇全部
Route::group(['domain' => '{account}.myapp.com'], function () {
Route::get('user/{id}', function ($account, $id) {
//
});
});