1 | <?php |
||
2 | |||
3 | namespace App; |
||
4 | |||
5 | use Illuminate\Auth\Authenticatable; |
||
6 | use Laravel\Lumen\Auth\Authorizable; |
||
7 | use Illuminate\Database\Eloquent\Model; |
||
8 | use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; |
||
9 | use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; |
||
10 | use Laravel\Passport\HasApiTokens; |
||
11 | |||
12 | class User extends Model implements AuthenticatableContract, AuthorizableContract |
||
13 | { |
||
14 | use HasApiTokens, Authenticatable, Authorizable; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
15 | |||
16 | /** |
||
17 | * The attributes that are mass assignable. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $fillable = [ |
||
22 | 'name', 'email', |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * The attributes excluded from the model's JSON form. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $hidden = [ |
||
31 | 'password', |
||
32 | ]; |
||
33 | } |
||
34 |