| Current Path : /var/www/html/dynaweb-starter/plugin/dynaweb-audit/src/Models/ |
| Current File : /var/www/html/dynaweb-starter/plugin/dynaweb-audit/src/Models/Audit.php |
<?php
namespace Dynaweb\DynawebAudit\Models;
use Illuminate\Database\Eloquent\Model;
class Audit extends Model implements \OwenIt\Auditing\Contracts\Audit
{
use \OwenIt\Auditing\Audit;
/**
* {@inheritdoc}
*/
protected $guarded = [];
/**
* {@inheritdoc}
*/
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($date)
{
return $this->serializeDate($date);
}
}