2016-08-19 16:38:49 -04:00
|
|
|
<?php
|
2015-07-08 03:34:58 -04:00
|
|
|
|
2016-08-19 16:38:49 -04:00
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Notifications\Notifiable;
|
2016-01-03 23:55:13 -05:00
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
2015-07-08 03:34:58 -04:00
|
|
|
|
2016-08-19 16:38:49 -04:00
|
|
|
class User extends Authenticatable
|
|
|
|
{
|
|
|
|
use Notifiable;
|
2016-08-16 22:00:39 -04:00
|
|
|
|
2015-07-08 03:34:58 -04:00
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2016-01-03 23:55:13 -05:00
|
|
|
protected $fillable = [
|
2017-11-21 23:12:31 -05:00
|
|
|
'name', 'email', 'password', 'api_token'
|
2016-01-03 23:55:13 -05:00
|
|
|
];
|
2015-07-08 03:34:58 -04:00
|
|
|
|
|
|
|
/**
|
2016-08-19 16:38:49 -04:00
|
|
|
* The attributes that should be hidden for arrays.
|
2015-07-08 03:34:58 -04:00
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2016-01-03 23:55:13 -05:00
|
|
|
protected $hidden = [
|
2017-11-21 23:12:31 -05:00
|
|
|
'password', 'remember_token', 'api_token'
|
2016-01-03 23:55:13 -05:00
|
|
|
];
|
2015-07-08 03:34:58 -04:00
|
|
|
}
|