coolify/app/Models/User.php

48 lines
1 KiB
PHP
Raw Normal View History

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;
/**
* @property int $id
* @property string $name
* @property string $email
* @property CarbonInterface|null $email_verified_at
* @property string $password
* @property CarbonInterface $created_at
* @property CarbonInterface $updated_at
*/
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',
'remember_token',
];
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}
}