PHP Class OwenIt\Auditing\AuditorManager

Inheritance: extends Illuminate\Support\Manager, implements OwenIt\Auditing\Contracts\Dispatcher
Show file Open project: owen-it/laravel-auditing

Protected Properties

Property Type Description
$defaultAuditor string The default auditor used to audit model.

Public Methods

Method Description
audit ( OwenIt\Auditing\Contracts\Auditable $model )
auditor ( string | null $name = null ) : mixed Get a auditor instance.
getDefaultDriver ( )

Protected Methods

Method Description
auditReview ( OwenIt\Auditing\Contracts\Auditable $model, string $auditor ) : boolean Review audit and determines if the entity can be audited.
createDatabaseDriver ( ) : DatabaseAuditor Create an instance of the database driver.
createDriver ( $driver )

Method Details

audit() public method

public audit ( OwenIt\Auditing\Contracts\Auditable $model )
$model OwenIt\Auditing\Contracts\Auditable

auditReview() protected method

Review audit and determines if the entity can be audited.
protected auditReview ( OwenIt\Auditing\Contracts\Auditable $model, string $auditor ) : boolean
$model OwenIt\Auditing\Contracts\Auditable
$auditor string
return boolean

auditor() public method

Get a auditor instance.
public auditor ( string | null $name = null ) : mixed
$name string | null
return mixed

createDatabaseDriver() protected method

Create an instance of the database driver.
protected createDatabaseDriver ( ) : DatabaseAuditor
return OwenIt\Auditing\Auditors\DatabaseAuditor

createDriver() protected method

protected createDriver ( $driver )

getDefaultDriver() public method

public getDefaultDriver ( )

Property Details

$defaultAuditor protected property

The default auditor used to audit model.
protected string $defaultAuditor
return string