ldc-projects-administration/app/Models/User.php

47 lines
914 B
PHP
Raw Permalink Normal View History

2024-01-23 11:11:54 +01:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
2024-01-23 11:11:54 +01:00
class User extends Authenticatable
2024-01-23 11:11:54 +01:00
{
2024-01-23 12:23:54 +01:00
use HasApiTokens;
use HasFactory;
use Notifiable;
2024-01-23 11:11:54 +01:00
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
2024-01-23 11:11:54 +01:00
*/
protected $fillable = [
'name',
'email',
'password',
2024-01-23 11:11:54 +01:00
];
/**
* The attributes that should be hidden for serialization.
2024-01-23 11:11:54 +01:00
*
* @var array<int, string>
2024-01-23 11:11:54 +01:00
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
'password' => 'hashed',
2024-01-23 11:11:54 +01:00
];
}