/** * Build out the Claim DTO's * * @return array */ public function resolveClaims() { $resolved = []; foreach ($this->claims as $name => $value) { $resolved[] = $this->claimFactory->get($name, $value); } return $resolved; }
/** * Build out the Claim DTO's. * * @return \Illuminate\Support\Collection */ protected function resolveClaims() { return $this->claims->map(function ($value, $name) { return $this->claimFactory->get($name, $value); }); }