/** * Get JWT custom claims. * If the model do not implement the method * will fallback to no custom claims. * * @return array */ public function getJWTCustomClaims() { if (count($this->claims)) { return $this->claims; } elseif (!method_exists($this->model, 'getJWTCustomClaims')) { return []; } return $this->model->getJWTCustomClaims(); }