Advertisement
Guest User

Untitled

a guest
Mar 4th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Models;
  4.  
  5. use Illuminate\Contracts\Auth\MustVerifyEmail;
  6. use Illuminate\Database\Eloquent\Model;
  7. use Illuminate\Foundation\Auth\User as Authenticatable;
  8. use Illuminate\Notifications\Notifiable;
  9.  
  10. class User extends Authenticatable
  11. {
  12.     use Notifiable;
  13.  
  14.     /**
  15.      * The attributes that are mass assignable.
  16.      *
  17.      * @var array
  18.      */
  19.     protected $fillable = [
  20.         'name', 'email', 'password',
  21.     ];
  22.  
  23.     /**
  24.      * The attributes that should be hidden for arrays.
  25.      *
  26.      * @var array
  27.      */
  28.     protected $hidden = [
  29.         'password', 'remember_token',
  30.     ];
  31.  
  32.     /**
  33.      * The attributes that should be cast to native types.
  34.      *
  35.      * @var array
  36.      */
  37.     protected $casts = [
  38.         'email_verified_at' => 'datetime',
  39.     ];
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement