26 lines
508 B
PHP
26 lines
508 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class SubjectType extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'name',
|
|
'description',
|
|
'slug',
|
|
'position',
|
|
];
|
|
|
|
public function entranceExaminations(): HasMany
|
|
{
|
|
return $this->hasMany('App\Models\EntranceExamination', 'subject_type_id');
|
|
}
|
|
}
|