forked from aslan/applicant-site
25 lines
451 B
PHP
25 lines
451 B
PHP
|
<?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',
|
||
|
'description'
|
||
|
];
|
||
|
|
||
|
public function receptionScreen(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo(ReceptionScreen::class);
|
||
|
}
|
||
|
}
|