2025-12-10 16:23:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Carbon\CarbonInterface;
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
|
|
|
|
|
|
|
|
/**
|
2026-02-24 16:44:29 +00:00
|
|
|
* @property-read int $id
|
|
|
|
|
* @property-read string $name
|
|
|
|
|
* @property-read string $email
|
|
|
|
|
* @property-read CarbonInterface|null $email_verified_at
|
|
|
|
|
* @property-read string $password
|
|
|
|
|
* @property-read CarbonInterface $created_at
|
|
|
|
|
* @property-read CarbonInterface $updated_at
|
2025-12-10 16:23:15 +00:00
|
|
|
*/
|
|
|
|
|
final class User extends Authenticatable
|
|
|
|
|
{
|
|
|
|
|
/** @use HasFactory<\Database\Factories\UserFactory> */
|
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The attributes that should be hidden for serialization.
|
|
|
|
|
*
|
|
|
|
|
* @var list<string>
|
|
|
|
|
*/
|
|
|
|
|
protected $hidden = [
|
|
|
|
|
'password',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the attributes that should be cast.
|
|
|
|
|
*
|
|
|
|
|
* @return array<string, string>
|
|
|
|
|
*/
|
|
|
|
|
protected function casts(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
2026-02-24 16:44:29 +00:00
|
|
|
'id' => 'int',
|
|
|
|
|
'name' => 'string',
|
|
|
|
|
'email' => 'string',
|
2025-12-10 16:23:15 +00:00
|
|
|
'email_verified_at' => 'datetime',
|
|
|
|
|
'password' => 'hashed',
|
2026-02-24 16:44:29 +00:00
|
|
|
'created_at' => 'datetime',
|
|
|
|
|
'updated_at' => 'datetime',
|
2025-12-10 16:23:15 +00:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|