diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 93ab021..5692ecb 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -37,13 +37,12 @@ protected function configure() protected function registerRoutes() { - Route::group([ - 'prefix' => 'stripe-connect', - 'as' => 'stripe-connect.', - 'middleware' => 'auth', - ], function () { - $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); - }); + Route::middleware(['web', 'auth']) + ->as('stripe-connect.') + ->prefix('stripe-connect') + ->group(function () { + $this->loadRoutesFrom(__DIR__.'/../routes/web.php'); + }); } protected function registerMigrations()