Files
nl-mall-api/app/Models/User.php

41 lines
808 B
PHP
Raw Normal View History

<?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;
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;
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
{
use 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 = [
2015-10-31 14:40:32 -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 = [
2015-10-31 14:40:32 -04:00
'password', 'remember_token',
2015-10-30 14:14:48 -05:00
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
2014-03-15 10:14:55 +00:00
}