URL Shortener 1.0
A Laravel-based URL shortener application
Chargement...
Recherche...
Aucune correspondance
User.php
Aller à la documentation de ce fichier.
1<?php
2
3namespace App\Models;
4
5// use Illuminate\Contracts\Auth\MustVerifyEmail;
6use Illuminate\Database\Eloquent\Factories\HasFactory;
7use Illuminate\Foundation\Auth\User as Authenticatable;
8use Illuminate\Notifications\Notifiable;
9
10class User extends Authenticatable
11{
13 use HasFactory, Notifiable;
14
20 protected $fillable = [
21 'name',
22 'email',
23 'password',
24 ];
25
31 protected $hidden = [
32 'password',
33 'remember_token',
34 ];
35
41 protected function casts(): array
42 {
43 return [
44 'email_verified_at' => 'datetime',
45 'password' => 'hashed',
46 ];
47 }
48}
casts()
Get the attributes that should be cast.
Definition User.php:41