1 | <?php |
||
21 | class Tip extends Model |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $table = 'tips'; |
||
27 | |||
28 | /** |
||
29 | * @return BelongsTo |
||
30 | */ |
||
31 | public function user(): BelongsTo |
||
35 | |||
36 | /** |
||
37 | * @return HasMany |
||
38 | */ |
||
39 | public function rating(): HasMany |
||
43 | |||
44 | /** |
||
45 | * @return HasMany |
||
46 | */ |
||
47 | public function likes(): HasMany |
||
51 | |||
52 | /** |
||
53 | * @return HasMany |
||
54 | */ |
||
55 | public function dislikes(): HasMany |
||
59 | } |