'user', '_resource' => 'fingerprints', ]; foreach ($this->getAttributes() as $attribute => $value) { switch ($attribute) { case 'id': case 'agent': case 'ip': case 'os': case 'latitude': case 'longitude': case 'token': $resource[$attribute] = $value; break; } } return $resource; } }