Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class TechTipComments extends Model |
||
9 | { |
||
10 | protected $primaryKey = 'comment_id'; |
||
11 | protected $fillable = ['tip_id', 'user_id', 'comment']; |
||
12 | protected $hidden = ['user_id']; |
||
13 | protected $appends = ['edit']; |
||
14 | protected $casts = [ |
||
15 | 'created_at' => 'datetime:M d, Y', |
||
16 | 'updated_at' => 'datetime:M d, Y', |
||
17 | ]; |
||
18 | |||
19 | 4 | public function User() |
|
22 | } |
||
23 | |||
24 | 4 | public function getEditAttribute() |
|
34 |