aboutsummaryrefslogtreecommitdiffstats
path: root/source/app/Models/Diploma.php
blob: 9e3808e5b1c6ad2a3321f8f2b3ee77dcb08236a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;


class Diploma extends Model
{
    protected $fillable = [
        'type',
    ];

    public function student(): HasMany
    {
       return $this->hasMany(Student::class, 'graduation_track');
    }
}