Laravel Route Sub Routing de domínio

Route::domain('{account}.myapp.com')->group(function () {
    Route::get('user/{id}', function ($account, $id) {
        //
    });
});
Cooperative Crab