Jenkinsfile fix
This commit is contained in:
parent
474fb24fd1
commit
24d25c6531
@ -7,38 +7,20 @@ use Tymon\JWTAuth\Contracts\JWTSubject;
|
|||||||
|
|
||||||
class User extends Authenticatable implements JWTSubject
|
class User extends Authenticatable implements JWTSubject
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The attributes that are mass assignable.
|
protected $fillable = [
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected array $fillable = [
|
|
||||||
'email', 'password', 'role'
|
'email', 'password', 'role'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
protected $hidden = [
|
||||||
* The attributes that should be hidden for arrays.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected array $hidden = [
|
|
||||||
'password', 'created_at', 'updated_at'
|
'password', 'created_at', 'updated_at'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the identifier that will be stored in the subject claim of the JWT.
|
|
||||||
*
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
public function getJWTIdentifier()
|
public function getJWTIdentifier()
|
||||||
{
|
{
|
||||||
return $this->getKey();
|
return $this->getKey();
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Return a key value array, containing any custom claims to be added to the JWT.
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getJWTCustomClaims()
|
public function getJWTCustomClaims()
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
Reference in New Issue
Block a user