ldc-com-app-bo/app/User.php

37 lines
642 B
PHP
Raw Normal View History

2021-01-15 14:47:59 +01:00
<?php
namespace App;
use App\Enums\Roles;
2021-01-15 14:47:59 +01:00
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Kwaadpepper\Enum\Traits\CastsEnums;
2021-01-15 14:47:59 +01:00
class User extends Authenticatable
{
2022-09-29 10:09:43 +02:00
use Notifiable;
use CastsEnums;
2021-01-15 14:47:59 +01: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',
2021-01-15 14:47:59 +01:00
];
protected $enumCasts = [
'role' => Roles::class
2021-01-15 14:47:59 +01:00
];
}