commit
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-28 12:06:05 +02:00
parent 90a6848721
commit 4d42f083ce
82 changed files with 7538 additions and 76 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;
use LogicException;
class AuditLog extends Model
{
use BelongsToTenant;
public $timestamps = false;
protected $guarded = ['id'];
protected function casts(): array
{
return ['before' => 'array', 'after' => 'array'];
}
protected static function booted(): void
{
static::updating(fn () => throw new LogicException('O histórico de auditoria não pode ser alterado.'));
static::deleting(fn () => throw new LogicException('O histórico de auditoria não pode ser eliminado.'));
}
}