From c4ef2392936f7be9b3d478c5b63c9e8601651f75 Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 18 Mar 2024 22:46:34 +0000 Subject: [PATCH] Updating the routes registration --- .github/workflows/run-tests.yml | 2 +- .gitignore | 1 + src/LogViewerServiceProvider.php | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 07f6882e..b729062b 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 diff --git a/.gitignore b/.gitignore index 39458d84..f07b09eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.idea /.phpunit.cache /build /vendor diff --git a/src/LogViewerServiceProvider.php b/src/LogViewerServiceProvider.php index f26dab34..7d85830e 100644 --- a/src/LogViewerServiceProvider.php +++ b/src/LogViewerServiceProvider.php @@ -39,7 +39,9 @@ public function register(): void $this->registerConfig(); - $this->registerProvider(Providers\RouteServiceProvider::class); + $this->booted(function () { + $this->registerProvider(Providers\RouteServiceProvider::class); + }); $this->registerCommands([ Commands\PublishCommand::class,