Add all files

This commit is contained in:
root
2025-11-30 11:57:22 +01:00
parent 2ee51cac4f
commit 044271db3d
1476 changed files with 142544 additions and 0 deletions

42
app/Models/AuditLog.php Normal file
View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class AuditLog extends Model
{
use HasFactory;
protected $fillable = [
'action',
'description',
'model_type',
'model_id',
'user_id',
'changes',
'ip_address',
'user_agent',
];
protected $casts = [
'changes' => 'array',
];
/**
* Get the model that was changed.
*/
public function model()
{
return $this->morphTo();
}
/**
* Get the user that performed the action.
*/
public function user()
{
return $this->belongsTo(User::class);
}
}