User.php 820 Bytes
Newer Older
Aan Choesni Herlingga committed
1 2 3 4
<?php

namespace App;

Aan Choesni Herlingga committed
5
use App\Http\Traits\UuidTrait;
Aan Choesni Herlingga committed
6 7 8 9 10
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
Aan Choesni Herlingga committed
11 12 13 14
    use Notifiable, UuidTrait;

    public $incrementing = false;
    protected $keyType = 'string';
Aan Choesni Herlingga committed
15 16 17 18 19 20 21

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
Aan Choesni Herlingga committed
22
        'name', 'email', 'password', 'role', 'is_active',
Aan Choesni Herlingga committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'email_verified_at' => 'datetime',
    ];
}