File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11.idea
22/vendor
33composer.lock
4+ .vscode
Original file line number Diff line number Diff line change 22
33return [
44
5+ 'enabled ' => env ('AUDITING_ENABLED ' , true ),
6+
57 /*
68 |--------------------------------------------------------------------------
79 | Audit Implementation
Original file line number Diff line number Diff line change @@ -284,8 +284,8 @@ public function toAudit(): array
284284 'event ' => $ this ->auditEvent ,
285285 'auditable_id ' => $ this ->getKey (),
286286 'auditable_type ' => $ this ->getMorphClass (),
287- $ morphPrefix. '_id ' => $ user ? $ user ->getAuthIdentifier () : null ,
288- $ morphPrefix. '_type ' => $ user ? $ user ->getMorphClass () : null ,
287+ $ morphPrefix . '_id ' => $ user ? $ user ->getAuthIdentifier () : null ,
288+ $ morphPrefix . '_type ' => $ user ? $ user ->getMorphClass () : null ,
289289 'url ' => $ this ->resolveUrl (),
290290 'ip_address ' => $ this ->resolveIpAddress (),
291291 'user_agent ' => $ this ->resolveUserAgent (),
@@ -488,7 +488,7 @@ public static function isAuditingEnabled(): bool
488488 return Config::get ('audit.console ' , false );
489489 }
490490
491- return true ;
491+ return Config:: get ( ' audit.enabled ' , true ) ;
492492 }
493493
494494 /**
You can’t perform that action at this time.
0 commit comments