photo/app/User.php

40 lines
734 B
PHP
Raw Permalink Normal View History

2016-06-20 13:35:59 +00:00
<?php
namespace App;
2019-11-08 12:08:34 +00:00
use Illuminate\Contracts\Auth\MustVerifyEmail;
2016-06-20 13:35:59 +00:00
use Illuminate\Foundation\Auth\User as Authenticatable;
2019-11-08 12:08:34 +00:00
use Illuminate\Notifications\Notifiable;
2016-06-20 13:35:59 +00:00
class User extends Authenticatable
{
2019-11-08 12:08:34 +00:00
use Notifiable;
2016-06-20 13:35:59 +00:00
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
2019-11-08 12:08:34 +00:00
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
2016-06-20 13:35:59 +00:00
}