Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.

Commit 373e6a4

Browse files
author
Mojtabaa.H.N
committed
fix: Moves routes to provier boot
1 parent 6cfeac9 commit 373e6a4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Providers/LaravelWebLogsServiceProvider.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ public function boot()
2121
__DIR__ . '/../../public' => base_path('public/vendor/web-logs'),
2222
], 'web-logs-assets');
2323
}
24-
}
25-
26-
public function register()
27-
{
28-
29-
$this->mergeConfigFrom(__DIR__ . '/../../config/web-logs.php', 'web-logs');
3024

3125
/** @var Router $router */
3226
$router = $this->app->router;
@@ -41,6 +35,13 @@ public function register()
4135
$router->get('web-logs/assets/{filename:.+}', AssetController::class);
4236
}
4337

38+
}
39+
40+
public function register()
41+
{
42+
43+
$this->mergeConfigFrom(__DIR__ . '/../../config/web-logs.php', 'web-logs');
44+
4445
$this->loadViewsFrom(__DIR__ . '/../../resources/views', 'web-logs');
4546

4647
Gate::define('viewWebLogs', function ($user = null) {

0 commit comments

Comments
 (0)