From 3eb7ba5ec81b6a43780b074118817c65e595b206 Mon Sep 17 00:00:00 2001 From: Alex Pestell Date: Tue, 1 Dec 2020 22:04:09 +0100 Subject: [PATCH 1/3] Rename path to prefix for route config --- src/JetstreamServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JetstreamServiceProvider.php b/src/JetstreamServiceProvider.php index 55047125e..9d08586b7 100644 --- a/src/JetstreamServiceProvider.php +++ b/src/JetstreamServiceProvider.php @@ -171,7 +171,7 @@ protected function configureRoutes() Route::group([ 'namespace' => 'Laravel\Jetstream\Http\Controllers', 'domain' => config('jetstream.domain', null), - 'prefix' => config('jetstream.path', null), + 'prefix' => config('jetstream.prefix', null), ], function () { $this->loadRoutesFrom(__DIR__.'/../routes/'.config('jetstream.stack').'.php'); }); From b983a9389374b8b0c15a5a82d189ed61afebc7ac Mon Sep 17 00:00:00 2001 From: Alex Pestell Date: Wed, 2 Dec 2020 12:13:55 +0100 Subject: [PATCH 2/3] Fall back to path config key --- src/JetstreamServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JetstreamServiceProvider.php b/src/JetstreamServiceProvider.php index 9d08586b7..2f0321b36 100644 --- a/src/JetstreamServiceProvider.php +++ b/src/JetstreamServiceProvider.php @@ -171,7 +171,7 @@ protected function configureRoutes() Route::group([ 'namespace' => 'Laravel\Jetstream\Http\Controllers', 'domain' => config('jetstream.domain', null), - 'prefix' => config('jetstream.prefix', null), + 'prefix' => config('jetstream.prefix', 'jetstream.path'), ], function () { $this->loadRoutesFrom(__DIR__.'/../routes/'.config('jetstream.stack').'.php'); }); From e20ef00284db90dca979e51992d0eb0ff07a8557 Mon Sep 17 00:00:00 2001 From: Alex Pestell Date: Wed, 2 Dec 2020 12:15:44 +0100 Subject: [PATCH 3/3] Oops - now it falls back to path --- src/JetstreamServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JetstreamServiceProvider.php b/src/JetstreamServiceProvider.php index 2f0321b36..b276ea3c7 100644 --- a/src/JetstreamServiceProvider.php +++ b/src/JetstreamServiceProvider.php @@ -171,7 +171,7 @@ protected function configureRoutes() Route::group([ 'namespace' => 'Laravel\Jetstream\Http\Controllers', 'domain' => config('jetstream.domain', null), - 'prefix' => config('jetstream.prefix', 'jetstream.path'), + 'prefix' => config('jetstream.prefix', config('jetstream.path')), ], function () { $this->loadRoutesFrom(__DIR__.'/../routes/'.config('jetstream.stack').'.php'); });