ldc-web/app/Models/User.php

45 lines
822 B
PHP
Raw Normal View History

2020-04-09 13:05:23 +02:00
<?php
2022-09-21 11:17:58 +00:00
namespace App\Models;
2020-04-09 13:05:23 +02:00
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
2022-09-21 11:17:58 +00:00
'firstname',
'lastname',
'email',
'phone',
'password',
'equipe_web_member'
2020-04-09 13:05:23 +02:00
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
2022-09-21 11:17:58 +00:00
'equipe_web_member' => 'boolean',
2020-04-09 13:05:23 +02:00
'email_verified_at' => 'datetime',
];
}