我可以在 Laravel 的路由组中使用域和端口吗?

Tho*_* E. 5 php routes laravel laravel-5

有没有办法将路由绑定到端口?我正在使用 Laravel 5.5

Route::domain('example.org:8080')->group(function() {... some routes ...})
Route::domain('example.org')->group(function() {... other routes ...})
Run Code Online (Sandbox Code Playgroud)

我已经尝试在 RouteServiceProvider 中使用路由模式。但它只允许我通过完整的域进行路由。

class RouteServiceProvider extends ServiceProvider
{
  ...
  public function boot()
  {
    // allow complete domains
    \Route::pattern('domain', '.+');
  }
  ...
}
Run Code Online (Sandbox Code Playgroud)

Tho*_* E. 1

认为在 Laravel 5.x 中没有办法做到这一点