Roman_applicant-site/app/Models/ReceptionScreen.php

24 lines
446 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class ReceptionScreen extends Model
{
use HasFactory;
protected $fillable = [
'id',
'name',
'position'
];
public function files(): HasMany
{
return $this->hasMany('App\Models\File', 'reception_screen_id');
}
}