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
7
7
{
8
8
public function boot ()
9
9
{
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
+ //
17
11
}
18
12
19
13
/**
Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ class RemoteLogsRepo implements LogsRepoInterface
12
12
13
13
public function __construct (array $ config )
14
14
{
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
+
16
21
$ this ->localLogPath = storage_path ('logs ' );
17
22
$ this ->disk = Storage::disk ($ this ->config ['remote_disk ' ]);
18
23
$ this ->remotePath = $ this ->config ['remote_path ' ] ? $ this ->config ['remote_path ' ] . '/ ' : null ;
You can’t perform that action at this time.
0 commit comments