Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | class ExperienceCommunity extends BaseModel |
||
28 | { |
||
29 | protected $casts = [ |
||
30 | 'title' => 'string', |
||
31 | 'group' => 'string', |
||
32 | 'project' => 'string', |
||
33 | 'is_active' => 'boolean', |
||
34 | 'start_date' => 'date', |
||
35 | 'end_date' => 'date', |
||
36 | 'is_education_requirement' => 'boolean' |
||
37 | ]; |
||
38 | |||
39 | protected $fillable = [ |
||
40 | 'title', |
||
41 | 'group', |
||
42 | 'project', |
||
43 | 'is_active', |
||
44 | 'start_date', |
||
45 | 'end_date', |
||
46 | 'is_education_requirement' |
||
47 | ]; |
||
48 | |||
49 | protected $table = 'experiences_community'; |
||
50 | |||
51 | public function experienceable() //phpcs:ignore |
||
52 | { |
||
53 | return $this->morphTo(); |
||
54 | } |
||
55 | |||
56 | public function skills() |
||
57 | { |
||
58 | return $this->morphToMany(\App\Models\Skill::class, 'experience', 'experience_skills'); |
||
59 | } |
||
60 | |||
61 | public function experience_skills() //phpcs:ignore |
||
64 | } |
||
65 | } |
||
66 |