clrghouz/app/Models/User.php

44 lines
832 B
PHP
Raw Normal View History

2018-11-15 10:45:49 +00:00
<?php
2021-05-03 12:53:40 +00:00
namespace App\Models;
2018-11-15 10:45:49 +00:00
use Illuminate\Contracts\Auth\MustVerifyEmail;
2021-05-03 12:53:40 +00:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
2018-11-15 10:45:49 +00:00
use Illuminate\Foundation\Auth\User as Authenticatable;
2021-05-03 12:53:40 +00:00
use Illuminate\Notifications\Notifiable;
2018-11-15 10:45:49 +00:00
class User extends Authenticatable
{
2021-05-03 12:53:40 +00:00
use HasFactory, Notifiable;
2018-11-15 10:45:49 +00:00
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
2021-05-03 12:53:40 +00:00
'name',
'email',
'password',
2018-11-15 10:45:49 +00:00
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
2021-05-03 12:53:40 +00:00
'password',
'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
2018-11-15 10:45:49 +00:00
];
}