From 24d25c6531af9f235d7186998fa2ced7e0658794 Mon Sep 17 00:00:00 2001 From: Artur Nowakowski Date: Sat, 30 Nov 2019 18:50:57 +0100 Subject: [PATCH] Jenkinsfile fix --- app/Models/User.php | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 1a073cc..9c66228 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -7,38 +7,20 @@ use Tymon\JWTAuth\Contracts\JWTSubject; class User extends Authenticatable implements JWTSubject { - /** - * The attributes that are mass assignable. - * - * @var array - */ - protected array $fillable = [ + + protected $fillable = [ 'email', 'password', 'role' ]; - /** - * The attributes that should be hidden for arrays. - * - * @var array - */ - protected array $hidden = [ + protected $hidden = [ 'password', 'created_at', 'updated_at' ]; - /** - * Get the identifier that will be stored in the subject claim of the JWT. - * - * @return mixed - */ public function getJWTIdentifier() { return $this->getKey(); } - /** - * Return a key value array, containing any custom claims to be added to the JWT. - * - * @return array - */ + public function getJWTCustomClaims() { return [];