2016-05-19 15:01:28 +01:00
|
|
|
<?php
|
|
|
|
|
2018-01-15 14:02:13 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-12-19 16:00:42 +00:00
|
|
|
namespace App\Models;
|
2016-05-19 15:01:28 +01:00
|
|
|
|
2020-09-13 17:00:45 +01:00
|
|
|
use Illuminate\Database\Eloquent\Builder;
|
2020-10-19 19:41:50 +01:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2016-05-19 15:01:28 +01:00
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
2020-09-13 17:00:45 +01:00
|
|
|
use Illuminate\Notifications\DatabaseNotification;
|
|
|
|
use Illuminate\Notifications\DatabaseNotificationCollection;
|
2019-10-27 16:29:15 +00:00
|
|
|
use Illuminate\Notifications\Notifiable;
|
2020-09-13 17:00:45 +01:00
|
|
|
use Illuminate\Support\Carbon;
|
2020-02-22 12:09:26 +00:00
|
|
|
|
2016-05-19 15:01:28 +01:00
|
|
|
class User extends Authenticatable
|
|
|
|
{
|
2020-10-19 19:41:50 +01:00
|
|
|
use HasFactory;
|
2016-09-06 16:40:39 +01:00
|
|
|
use Notifiable;
|
|
|
|
|
2016-05-19 15:01:28 +01:00
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = [
|
2019-03-21 19:46:38 +00:00
|
|
|
'name', 'password',
|
2016-05-19 15:01:28 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that should be hidden for arrays.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $hidden = [
|
|
|
|
'password', 'remember_token',
|
|
|
|
];
|
|
|
|
}
|