1 | <?php |
||
2 | |||
3 | namespace Usamamuneerchaudhary\Commentify\Models; |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
||
6 | use Illuminate\Foundation\Auth\User as BaseUser; |
||
7 | use Usamamuneerchaudhary\Commentify\Database\Factories\UserFactory; |
||
8 | use Usamamuneerchaudhary\Commentify\Traits\HasUserAvatar; |
||
9 | |||
10 | class User extends BaseUser |
||
11 | { |
||
12 | use HasUserAvatar, HasFactory; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $table = 'users'; |
||
18 | |||
19 | /** |
||
20 | * @return UserFactory |
||
21 | */ |
||
22 | protected static function newFactory(): UserFactory |
||
23 | { |
||
24 | return UserFactory::new(); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
29 | */ |
||
30 | public function likes(): \Illuminate\Database\Eloquent\Relations\HasMany |
||
31 | { |
||
32 | return $this->hasMany(CommentLike::class); |
||
33 | } |
||
34 | } |
||
35 |