expressolivretools / app / Models / User.php @ 68c328a2
Histórico | Ver | Anotar | Baixar (790 Bytes)
1 | 3e379cec | Alexandre Correia | <?php
|
---|---|---|---|
2 | |||
3 | namespace App\Models; |
||
4 | |||
5 | use Illuminate\Auth\Authenticatable; |
||
6 | use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; |
||
7 | use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; |
||
8 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
||
9 | use Illuminate\Database\Eloquent\Model; |
||
10 | use Laravel\Lumen\Auth\Authorizable; |
||
11 | |||
12 | class User extends Model implements AuthenticatableContract, AuthorizableContract |
||
13 | { |
||
14 | use Authenticatable, Authorizable, HasFactory; |
||
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 | } |