From f4f51630d4bfe38efa6acb6a9f660ba8a98853bc Mon Sep 17 00:00:00 2001 From: Luca Patera Date: Mon, 6 Nov 2023 21:56:57 +0100 Subject: [PATCH] Fix wrong registration for logging views --- src/NutgramServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NutgramServiceProvider.php b/src/NutgramServiceProvider.php index 35ac4d8..b7bfe34 100644 --- a/src/NutgramServiceProvider.php +++ b/src/NutgramServiceProvider.php @@ -84,9 +84,10 @@ public function register() public function boot(): void { + $this->loadViewsFrom(__DIR__.'/../resources/views/logging', 'logging'); + if ($this->app->runningInConsole()) { $this->loadViewsFrom(__DIR__.'/../resources/views/terminal', 'terminal'); - $this->loadViewsFrom(__DIR__.'/../resources/views/logging', 'logging'); $this->commands([ Console\RunCommand::class,