Files
RomhackPlaza/app/Models/EntryFile.php
2026-06-08 16:25:52 +02:00

24 lines
522 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class EntryFile extends Model
{
protected $fillable = [
'entry_id', 'filename', 'filepath', 'favorite_server', 'favorite_at', 'filesize', 'state', 'file_uuid', 'online_patcher', 'secondary_online_patcher',
];
protected $casts = [
'favorite_at' => 'timestamp'
];
public function entry(): BelongsTo
{
return $this->belongsTo(Entry::class);
}
}