We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30cfa14 commit a15d333Copy full SHA for a15d333
1 file changed
src/AuditingServiceProvider.php
@@ -25,6 +25,10 @@ public function boot()
25
$this->registerPublishing();
26
$this->mergeConfigFrom(__DIR__.'/../config/audit.php', 'audit');
27
28
+ if (!$this->app->make('config')->get('audit.enabled', true)) {
29
+ return;
30
+ }
31
+
32
Event::listen(AuditCustom::class, RecordCustomAudit::class);
33
Event::listen(DispatchAudit::class, ProcessDispatchAudit::class);
34
}
0 commit comments