User.php 587 Bytes
Newer Older
1
2
3
4
<?php

namespace App;

Jacob Priddy's avatar
Jacob Priddy committed
5
use Illuminate\Database\Eloquent\SoftDeletes;
Jacob Priddy's avatar
Jacob Priddy committed
6
use Illuminate\Database\Eloquent\Relations\HasMany;
Jacob Priddy's avatar
Jacob Priddy committed
7
use Illuminate\Foundation\Auth\User as Authenticatable;
8

Jacob Priddy's avatar
Jacob Priddy committed
9
class User extends Authenticatable {
Jacob Priddy's avatar
Jacob Priddy committed
10
    use SoftDeletes;
11

Jacob Priddy's avatar
Jacob Priddy committed
12
13
14
15
    protected $fillable = [
        '*',
    ];

16
17
18
19
20
21
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
Jacob Priddy's avatar
Jacob Priddy committed
22
        'expires_at' => 'datetime',
23
    ];
Jacob Priddy's avatar
Jacob Priddy committed
24
25
26
27
28
29
30

    /**
     * @return HasMany
     */
    public function tokens(): HasMany {
        return $this->hasMany(Token::class);
    }
31
}