Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class Interaction extends Model |
||
19 | { |
||
20 | use CanFilterByUser; |
||
21 | |||
22 | protected $casts = [ |
||
23 | 'liked' => 'boolean', |
||
24 | 'play_count' => 'integer', |
||
25 | ]; |
||
26 | protected $guarded = ['id']; |
||
27 | protected $hidden = ['id', 'user_id', 'created_at', 'updated_at']; |
||
28 | |||
29 | 3 | public function user(): BelongsTo |
|
32 | } |
||
33 | |||
34 | 5 | public function song(): BelongsTo |
|
39 |