Files
laraundfelix/app/Domain/Catalog/IdentityChange.php
LarsandCursor 5e763d15ec
Deploy Test / test (push) Successful in 17s
Deploy Test / deploy (push) Successful in 25s
Ergaenze Stammdaten, Suche, Dimensionen, Abdeckung und Ausgabenachweis
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-16 08:24:23 +01:00

33 lines
599 B
PHP

<?php
namespace App\Domain\Catalog;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class IdentityChange extends Model
{
protected $fillable = [
'subject_type',
'subject_id',
'field',
'before',
'after',
'actor_id',
'occurred_at',
];
protected function casts(): array
{
return [
'occurred_at' => 'datetime',
];
}
public function actor(): BelongsTo
{
return $this->belongsTo(User::class, 'actor_id');
}
}