Files
Epicnabbo-Catalogus-Updated…/Updated_Cms/app/Models/CommandLog.php
T
Remco 8d3115678c 🆙 More fixes 🆙
2026-01-19 21:04:53 +01:00

33 lines
592 B
PHP

<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class CommandLog extends Model
{
protected $table = 'commandlogs';
protected $primaryKey = 'timestamp';
protected $guarded = [];
public $timestamps = false;
/**
* @return BelongsTo<User, $this>
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
protected function casts(): array
{
return [
'timestamp' => 'datetime',
];
}
}