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
|
|
11
|
class User extends Model implements
|
12
|
AuthenticatableContract,
|
13
|
AuthorizableContract
|
14
|
{
|
15
|
use Authenticatable, Authorizable;
|
16
|
|
17
|
/**
|
18
|
* The attributes that are mass assignable.
|
19
|
*
|
20
|
* @var array
|
21
|
*/
|
22
|
protected $fillable = [
|
23
|
'name', 'email',
|
24
|
];
|
25
|
|
26
|
/**
|
27
|
* The attributes excluded from the model's JSON form.
|
28
|
*
|
29
|
* @var array
|
30
|
*/
|
31
|
protected $hidden = [
|
32
|
'password',
|
33
|
];
|
34
|
}
|