File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class Provider extends AbstractComponentProvider
5252 public function isAvailable (): bool
5353 {
5454 return class_exists (DatabaseServiceProvider::class)
55- && is_array ($ this ->app [ ' config ' ]-> get ('database ' , false ))
55+ && file_exists ($ this ->app -> configPath ('database.php ' ))
5656 && $ this ->app ['config ' ]->get ('database.useDefaultProvider ' , true ) === true ;
5757 }
5858
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ final class Provider extends AbstractComponentProvider
2828 */
2929 public function isAvailable (): bool
3030 {
31- return class_exists (\ Illuminate \ Log \LogServiceProvider::class )
31+ return file_exists ( $ this -> app -> configPath ( ' logging.php ' ) )
3232 && $ this ->app ['config ' ]->get ('logging.useDefaultProvider ' , true ) === true ;
3333 }
3434
You can’t perform that action at this time.
0 commit comments