summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AuthLogServiceProvider.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/AuthLogServiceProvider.php b/src/AuthLogServiceProvider.php
index 0748f34..2c1e177 100644
--- a/src/AuthLogServiceProvider.php
+++ b/src/AuthLogServiceProvider.php
@@ -22,6 +22,9 @@ class AuthLogServiceProvider extends ServiceProvider
"{$root}/config/auth_log.php" => config_path('auth_log.php'),
], "{$ns}:config");
- Event::subscribe(AuthSubscriber::class);
+
+ if (config('auth_log.enabled')) {
+ Event::subscribe(AuthSubscriber::class);
+ }
}
}