| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Tag extends Model |
||
| 9 | { |
||
| 10 | protected $table = 'how_to_tags'; |
||
| 11 | |||
| 12 | protected $guarded = ['id']; |
||
| 13 | |||
| 14 | public function videos() |
||
| 15 | { |
||
| 16 | return $this->belongsToMany( |
||
| 17 | Video::class, |
||
| 18 | 'how_to_tag_how_to_video', |
||
| 19 | 'how_to_tag_id', |
||
| 20 | 'how_to_video_id' |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function delete() |
||
| 31 | } |
||
| 32 | } |
||
| 33 |