PHP Class OwenIt\Auditing\Models\Audit

Inheritance: extends Illuminate\Database\Eloquent\Model
Show file Open project: owen-it/laravel-auditing Class Usage Examples

Public Properties

Property Type Description
$incrementing
$timestamps

Protected Properties

Property Type Description
$casts
$data array Audit data.
$dates
$guarded
$metadata array The Audit attributes that belong to the metadata.
$modified array The Auditable attributes that were modified.
$table

Public Methods

Method Description
auditable ( ) : Illuminate\Database\Eloquent\Relations\MorphTo Get the auditable model to which this Audit belongs.
getConnection ( )
getDataValue ( string $key ) : mixed Get an Audit data value.
getMetadata ( ) : array Get the Audit metadata.
getModified ( ) : array Get the Auditable modified attributes.
getTable ( )
resolveData ( ) : array Audit data resolver.
user ( ) : BelongsTo User responsible for the changes.

Method Details

auditable() public method

Get the auditable model to which this Audit belongs.
public auditable ( ) : Illuminate\Database\Eloquent\Relations\MorphTo
return Illuminate\Database\Eloquent\Relations\MorphTo

getConnection() public method

public getConnection ( )

getDataValue() public method

Get an Audit data value.
public getDataValue ( string $key ) : mixed
$key string
return mixed

getMetadata() public method

Get the Audit metadata.
public getMetadata ( ) : array
return array

getModified() public method

Get the Auditable modified attributes.
public getModified ( ) : array
return array

getTable() public method

public getTable ( )

resolveData() public method

Audit data resolver.
public resolveData ( ) : array
return array

user() public method

User responsible for the changes.
public user ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

Property Details

$casts protected property

protected $casts

$data protected property

Audit data.
protected array $data
return array

$dates protected property

protected $dates

$guarded protected property

protected $guarded

$incrementing public property

public $incrementing

$metadata protected property

The Audit attributes that belong to the metadata.
protected array $metadata
return array

$modified protected property

The Auditable attributes that were modified.
protected array $modified
return array

$table protected property

protected $table

$timestamps public property

public $timestamps