0d1f38cf85
* Refactor all JS API calls #360 * Remove unused imports * Lint JS * Fix doubled api key * Formatting * Added extra logging to distance lookup * Remove the .editorconfig file in distrib * shell check fixes * Remove the .editorconfig file in distrib
19 lines
349 B
PHP
19 lines
349 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\ResourceCollection;
|
|
|
|
class PirepFieldCollection extends ResourceCollection
|
|
{
|
|
public function toArray($request)
|
|
{
|
|
$res = [];
|
|
foreach ($this->collection as $field) {
|
|
$res[$field->name] = $field->value;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
}
|