for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OwenIt\Auditing\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property string $tags
* @property string $event
* @property array<string,mixed> $new_values
* @property array<string,mixed> $old_values
* @property mixed $user
* @property mixed $auditable.
*/
class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit
{
use \OwenIt\Auditing\Audit;
OwenIt\Auditing\Audit
$auditable
OwenIt\Auditing\Models\Audit
* {@inheritdoc}
protected $guarded = [];
* Is globally auditing disabled?
*
* @var bool
public static $auditingGloballyDisabled = false;
protected $casts = [
'old_values' => 'json',
'new_values' => 'json',
// Note: Please do not add 'auditable_id' in here, as it will break non-integer PK models
];
public function getSerializedDate(\DateTimeInterface $date): string
return $this->serializeDate($date);
}