/
denispirit
/
lara
Обзор
Документация
Войти
/
denispirit
/
lara
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
app/Models/User.php
48 строк
1 KB
Денис Сергеевич Спиридонов
Initial commit
23 сен 2024, 13:39
23 сен 2024, 13:39
29535ea
Код
Авторство
О чём код?
<?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 Illuminate\Contracts\Auth\CanResetPassword; class User extends Authenticatable implements MustVerifyEmail, CanResetPassword { use HasFactory, Notifiable, \Illuminate\Auth\Passwords\CanResetPassword; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'name', 'email', 'password', ]; /** * The attributes that should be hidden for serialization. * * @var array<int, 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', ]; } }