Skip to content

Entities Namespace

php
use CharlGottschalk\LaravelAware\Entities

ChangeActor

Properties

$actorClass

Type: null|string


$actorId

Type: null|string|int

ChangeData

Properties

$model

Type: Illuminate\Database\Eloquent\Model


$changes

Type: CharlGottschalk\LaravelAware\Entities\ChangedAttributes


$action

Type: CharlGottschalk\LaravelAware\Enums\ChangeAction

TIP

Read more about the ChangeAction enum.

ChangedAttributes

Properties

$changes

Type: Illuminate\Support\Collection|array

Example Value:

php
[
    'name' => 'new_value',
    'email' => 'new_value',
]

$original

Type: Illuminate\Support\Collection|array

Example Value:

php
[
    'name' => 'old_value',
    'email' => 'old_value',
]

$changed

Type: Illuminate\Support\Collection|array

Example Value:

php
[
    [
        'from' => 'old_value',
        'to' => 'new_value',
        'column' => 'column_name'
    ],
    ...
]