Property | Type | Description | |
---|---|---|---|
$auditCurrentUrl | string | ||
$auditEvent | string | ||
$auditIpAddress | string | ||
$auditUserId | string | ||
$dirtyData | array | ||
$newData | array | ||
$oldData | array |
Method | Description | |
---|---|---|
audit ( ) : void | Audit the model auditable. | |
auditCreation ( ) : void | Audit creation. | |
auditDeletion ( ) : void | Audit deletion. | |
auditUpdate ( ) : void | Audit updated. | |
audits ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | Auditable Model audits. | |
bootAuditable ( ) | Init auditing. | |
cleanHiddenAuditAttributes ( array $attributes ) : array | Remove the value of attributes which are hidden or not visible on the model. | |
clearOlderAudits ( ) | ||
getAuditableEvents ( ) : array | Get the auditable events. | |
getAuditors ( ) : array | Get the Auditors. | |
getIpAddress ( ) : mixed | Get IP Address. | |
isAuditEnabled ( ) : boolean | Determine whether audit enabled. | |
isAuditRespectsHidden ( ) : boolean | Whether to clean the attributes which are hidden or not visible. | |
isEventAuditable ( string $event ) : boolean | Determine whether an event is auditable. | |
prepareAudit ( ) : void | Prepare audit model. | |
setAuditEvent ( $event ) | Set audit event. | |
toAudit ( ) : array | Audit model. | |
transformAudit ( array $data ) |
Method | Description | |
---|---|---|
getCurrentUrl ( ) : string | Get the current request's route if available. | |
getLoggedInUserId ( ) : null | Get user id. |
Method | Description | |
---|---|---|
changedAuditingFields ( ) : array | Fields Changed. | |
isAttributeAuditable ( $attribute ) : boolean | Determine whether a attribute is auditable for audit manipulation. |
public audits ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
return | Illuminate\Database\Eloquent\Relations\MorphMany |
public cleanHiddenAuditAttributes ( array $attributes ) : array | ||
$attributes | array | |
return | array |
public getAuditableEvents ( ) : array | ||
return | array |
protected getCurrentUrl ( ) : string | ||
return | string |
protected getLoggedInUserId ( ) : null | ||
return | null |
public static isAuditEnabled ( ) : boolean | ||
return | boolean |
public isAuditRespectsHidden ( ) : boolean | ||
return | boolean |
public isEventAuditable ( string $event ) : boolean | ||
$event | string | |
return | boolean |