35 lines
636 B
PHP
35 lines
636 B
PHP
<?php
|
|
|
|
namespace App\Models\Auth;
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
|
|
class User extends Authenticatable
|
|
{
|
|
use Notifiable;
|
|
|
|
protected $fillable = [
|
|
'character_owner_hash',
|
|
'character_name',
|
|
'character_id',
|
|
'token',
|
|
'refresh_token',
|
|
'expiresIn',
|
|
'user_jwt', // holds jwt (per spec)
|
|
];
|
|
|
|
protected $hidden = [
|
|
'token',
|
|
'refresh_token',
|
|
'remember_token',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'expiresIn' => 'integer',
|
|
];
|
|
}
|
|
}
|