Skip to content

Commit

Permalink
fix: logDirs always being reset to logs folder
Browse files Browse the repository at this point in the history
closes #29
  • Loading branch information
saade authored Oct 4, 2023
1 parent fd28b67 commit 4d094b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/FilamentLaravelLogPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ public function register(Panel $panel): void

public function boot(Panel $panel): void
{
$this->logDirs([
storage_path('logs'),
]);
if(! $this->getLogDirs()){
$this->logDirs([
storage_path('logs'),
]);
}
}

public function authorize(bool | Closure $callback = true): static
Expand Down

0 comments on commit 4d094b8

Please sign in to comment.