Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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);
     });
 }