2015-06-01 15:43:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
2020-08-20 15:31:07 -05:00
|
|
|
namespace App\Models;
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2018-09-06 08:11:07 -05:00
|
|
|
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
2020-04-21 10:12:39 -05:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2015-12-16 15:18:11 -06:00
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
2019-09-10 17:26:00 +02:00
|
|
|
use Illuminate\Notifications\Notifiable;
|
2021-08-11 13:44:34 -05:00
|
|
|
use Laravel\Sanctum\HasApiTokens;
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2015-12-16 15:18:11 -06:00
|
|
|
class User extends Authenticatable
|
2015-02-22 20:47:03 -06:00
|
|
|
{
|
2021-08-11 13:44:34 -05:00
|
|
|
use HasApiTokens, HasFactory, Notifiable;
|
2016-06-29 21:02:16 -05:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
2015-10-30 14:14:48 -05:00
|
|
|
protected $fillable = [
|
2020-09-20 21:35:48 -04:00
|
|
|
'name',
|
|
|
|
|
'email',
|
|
|
|
|
'password',
|
2015-10-30 14:14:48 -05:00
|
|
|
];
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
2016-03-17 17:18:53 -03:00
|
|
|
* The attributes that should be hidden for arrays.
|
2015-02-22 20:47:03 -06:00
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
2015-10-30 14:14:48 -05:00
|
|
|
protected $hidden = [
|
2020-09-20 21:35:48 -04:00
|
|
|
'password',
|
|
|
|
|
'remember_token',
|
2015-10-30 14:14:48 -05:00
|
|
|
];
|
2019-02-04 13:06:44 +01:00
|
|
|
|
|
|
|
|
/**
|
2019-02-04 14:28:05 +01:00
|
|
|
* The attributes that should be cast to native types.
|
2019-02-04 13:06:44 +01:00
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
2019-02-04 14:28:05 +01:00
|
|
|
protected $casts = [
|
|
|
|
|
'email_verified_at' => 'datetime',
|
2019-02-04 13:06:44 +01:00
|
|
|
];
|
2014-03-15 10:14:55 +00:00
|
|
|
}
|