24 lines
464 B
PHP
24 lines
464 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class AuditLogEntry extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = [];
|
|
|
|
protected $casts = ['affected' => 'json'];
|
|
|
|
public function getCreatedAtAttribute($value)
|
|
{
|
|
return Carbon::parse($value)
|
|
->setTimezone('America/Chicago')
|
|
->format('M j, Y H:i:s');
|
|
}
|
|
}
|