2024-01-23 17:58:48 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
|
|
class File extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'url',
|
2024-01-31 08:47:05 +03:00
|
|
|
'description',
|
2024-01-23 17:58:48 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
public function receptionScreen(): BelongsTo
|
|
|
|
{
|
|
|
|
return $this->belongsTo(ReceptionScreen::class);
|
|
|
|
}
|
|
|
|
}
|