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;
|
|
|
|
|
2024-02-14 09:44:53 +03:00
|
|
|
class Document extends Model
|
2024-01-23 17:58:48 +03:00
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
2024-02-07 16:33:34 +03:00
|
|
|
'file_name',
|
2024-01-23 17:58:48 +03:00
|
|
|
'url',
|
2024-01-31 08:47:05 +03:00
|
|
|
'description',
|
2024-01-23 17:58:48 +03:00
|
|
|
];
|
|
|
|
|
2024-02-14 09:44:53 +03:00
|
|
|
public function admission(): BelongsTo
|
2024-01-23 17:58:48 +03:00
|
|
|
{
|
2024-02-14 09:44:53 +03:00
|
|
|
return $this->belongsTo(Admission::class);
|
2024-01-23 17:58:48 +03:00
|
|
|
}
|
|
|
|
}
|