Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
29 | class Degree extends BaseModel { |
||
30 | |||
31 | protected $casts = [ |
||
32 | 'degree_type_id' => 'int', |
||
33 | 'area_of_study' => 'string', |
||
34 | 'institution' => 'string', |
||
35 | 'thesis' => 'string', |
||
36 | 'start_date' => 'date', |
||
37 | 'end_date' => 'date', |
||
38 | 'appliant_id' => 'int' |
||
39 | ]; |
||
40 | protected $fillable = [ |
||
41 | 'degree_type_id', |
||
42 | 'area_of_study', |
||
43 | 'institution', |
||
44 | 'thesis', |
||
45 | 'start_date', |
||
46 | 'end_date' |
||
47 | ]; |
||
48 | |||
49 | public function degree_type() { |
||
50 | return $this->belongsTo(\App\Models\Lookup\DegreeType::class); |
||
51 | } |
||
52 | |||
53 | public function applicant() { |
||
55 | } |
||
56 | } |
||
57 |