. */ namespace FireflyIII\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\MorphTo; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class AuditLogEntry */ class AuditLogEntry extends Model { use SoftDeletes; protected $casts = [ 'before' => 'array', 'after' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; /** * @codeCoverageIgnore */ public function auditable(): MorphTo { return $this->morphTo(); } /** * @codeCoverageIgnore */ public function changer(): MorphTo { return $this->morphTo(); } }