You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
626 B
34 lines
626 B
<?php |
|
|
|
namespace App\Models; |
|
|
|
use Illuminate\Database\Eloquent\Model; |
|
|
|
class AuditLog extends Model |
|
{ |
|
protected $connection = 'audit'; |
|
|
|
protected $fillable = [ |
|
'occurred_at', |
|
'actor_type', |
|
'actor_username', |
|
'actor_client', |
|
'action', |
|
'resource', |
|
'method', |
|
'path', |
|
'status_code', |
|
'ip_address', |
|
'user_agent', |
|
'metadata', |
|
]; |
|
|
|
protected function casts(): array |
|
{ |
|
return [ |
|
'occurred_at' => 'datetime', |
|
'metadata' => 'array', |
|
'status_code' => 'integer', |
|
]; |
|
} |
|
}
|
|
|