| Total Complexity | 5 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class UserTechTipRecent extends Model |
||
| 9 | { |
||
| 10 | use HasFactory; |
||
| 11 | |||
| 12 | protected $guarded = ['id', 'updated_at', 'created_at']; |
||
| 13 | protected $hidden = ['id', 'user_id', 'created_at', 'TechTip']; |
||
| 14 | protected $appends = ['subject', 'slug']; |
||
| 15 | |||
| 16 | public function TechTip() |
||
| 17 | { |
||
| 18 | return $this->belongsTo(TechTip::class, 'tip_id', 'tip_id'); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getSubjectAttribute() |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getSlugAttribute() |
||
| 31 |