ldc-com-app-bo/app/User.php
Vincent BRIDIER aed37bfad3
phpcbf
2022-09-29 10:09:43 +02:00

36 lines
642 B
PHP

<?php
namespace App;
use App\Enums\Roles;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Kwaadpepper\Enum\Traits\CastsEnums;
class User extends Authenticatable
{
use Notifiable;
use CastsEnums;
/**
* 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',
];
protected $enumCasts = [
'role' => Roles::class
];
}