File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,7 @@ class LaravelServiceProvider extends Provider
77{
88 public function boot ()
99 {
10- $ config = config ('laravel-log-keeper ' );
11-
12- if ($ config ['enabled ' ]) {
13- if ($ config ['enabled_remote ' ] && !$ config ['remote_disk ' ]) {
14- throw new Exception ("disk not configured for Laravel Log Keeper " );
15- }
16- }
10+ //
1711 }
1812
1913 /**
Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ class RemoteLogsRepo implements LogsRepoInterface
1212
1313 public function __construct (array $ config )
1414 {
15- $ this ->config = $ config ;
15+ $ this ->config = $ config ;
16+
17+ if ($ this ->config ['enabled_remote ' ] && !$ this ->config ['remote_disk ' ]) {
18+ throw new Exception ("remote_disk not configured for Laravel Log Keeper " );
19+ }
20+
1621 $ this ->localLogPath = storage_path ('logs ' );
1722 $ this ->disk = Storage::disk ($ this ->config ['remote_disk ' ]);
1823 $ this ->remotePath = $ this ->config ['remote_path ' ] ? $ this ->config ['remote_path ' ] . '/ ' : null ;
You can’t perform that action at this time.
0 commit comments