1 | <?php |
||
2 | |||
3 | namespace App\Models; |
||
4 | |||
5 | use Laravel\Passport\HasApiTokens; |
||
6 | use App\Models\Traits\Method\UserMethod; |
||
7 | use Illuminate\Notifications\Notifiable; |
||
8 | use App\Models\Traits\Attribute\UserAttribute; |
||
9 | use Illuminate\Foundation\Auth\User as Authenticatable; |
||
10 | |||
11 | class User extends Authenticatable |
||
12 | { |
||
13 | use UserMethod, |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
14 | Notifiable, |
||
15 | HasApiTokens, |
||
16 | UserAttribute; |
||
17 | |||
18 | /** |
||
19 | * The attributes that are mass assignable. |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $fillable = [ |
||
24 | 'name', 'email', 'password', |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * The attributes that should be hidden for arrays. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $hidden = [ |
||
33 | 'password', 'remember_token', |
||
34 | ]; |
||
35 | } |
||
36 |