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