summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-04-10 00:53:23 +0100
committerSam Light <samlight1994@gmail.com>2025-04-10 00:53:23 +0100
commit8a092185e9b3f10b30043dd968d457cca1c905fd (patch)
tree01498619d508515b61c0681ea9e1620aa0edb54e /src
parent181f462bb34d8cab98525536077179c6ab1bc89c (diff)
Make possible to disable auth logv1.0.1
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);
+ }
}
}