PHP Class OwenIt\Auditing\Models\Audit

Inheritance: extends Illuminate\Database\Eloquent\Model
Mostra 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_oe property

protected $casts

$data protected_oe property

Audit data.
protected array $data
return array

$dates protected_oe property

protected $dates

$guarded protected_oe property

protected $guarded

$incrementing public_oe property

public $incrementing

$metadata protected_oe property

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

$modified protected_oe property

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

$table protected_oe property

protected $table

$timestamps public_oe property

public $timestamps