Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Grade extends Model |
||
9 | { |
||
10 | use LogsActivity; |
||
11 | |||
12 | protected $guarded = ['id']; |
||
13 | protected $with = ['grade_type']; |
||
14 | protected $appends = ['grade_type_category']; |
||
15 | protected static $logFillable = true; |
||
16 | |||
17 | public function grade_type() |
||
18 | { |
||
19 | return $this->belongsTo(GradeType::class); |
||
20 | } |
||
21 | |||
22 | public function enrollment() |
||
23 | { |
||
24 | return $this->belongsTo(Enrollment::class); |
||
25 | } |
||
26 | |||
27 | public function getGradeTypeCategoryAttribute() |
||
30 | } |
||
31 | } |
||
32 |