Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | trait CanBeFollowed |
||
20 | { |
||
21 | /** |
||
22 | * Check if user is followed by given user. |
||
23 | * |
||
24 | * @param int $user |
||
25 | * |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function isFollowedBy($user) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Return followers. |
||
35 | * |
||
36 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
37 | */ |
||
38 | public function followers() |
||
45 |