Core/app/Models/User.php

50 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2023-04-11 09:21:20 +00:00
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
2023-04-17 05:36:48 +00:00
use Spatie\Permission\Traits\HasRoles;
use Wildside\Userstamps\Userstamps;
2023-04-11 09:21:20 +00:00
class User extends Authenticatable
{
2023-04-17 05:36:48 +00:00
use HasApiTokens, HasFactory, Notifiable, Userstamps;
use HasRoles;
2023-04-11 09:21:20 +00:00
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'email',
'password',
2023-04-17 05:36:48 +00:00
'directorat_id',
'sub_directorat_id',
2023-04-11 09:21:20 +00:00
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
}