*/ protected $fillable = [ 'firstname', 'password', 'lastname', 'username', 'email', 'email_verified_at', 'birthday', 'address', 'phone', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', ]; public function getJWTIdentifier() { return $this->getKey(); } public function getJWTCustomClaims() { return []; } public function staffOnline() { return $this->hasOne(\App\Models\Staff::class, 'user_id', 'id'); } }