Files
RomhackPlaza/app/Models/EntryFile.php

24 lines
522 B
PHP
Raw Normal View History

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