PHP Classes

File: app/Models/User.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Jaxon DB Admin   app/Models/User.php   Download  
File: app/Models/User.php
Role: Class source
Content typex: text/plain
Description: Class source
Class: Jaxon DB Admin
Web application to manage SQL of databases
Author: By
Last change: Update of app/Models/User.php
Date: 1 month ago
Size: 1,009 bytes
 

Contents

Class file image Download
<?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;

class
User extends Authenticatable
{
   
/** @use HasFactory<\Database\Factories\UserFactory> */
   
use HasFactory, Notifiable;

   
/**
     * The attributes that are mass assignable.
     *
     * @var list<string>
     */
   
protected $fillable = [
       
'name',
       
'email',
       
'password',
    ];

   
/**
     * 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',
        ];
    }
}