ClearBowl/app/Models/User.php
2019-11-30 18:54:49 +01:00

29 lines
498 B
PHP

<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;
class User extends Authenticatable implements JWTSubject
{
protected $fillable = [
'email', 'password', 'role'
];
protected $hidden = [
'password', 'created_at', 'updated_at'
];
public function getJWTIdentifier()
{
return $this->getKey();
}
public function getJWTCustomClaims()
{
return [];
}
}