phpvms/app/Http/Resources/PirepFieldCollection.php
Nabeel S 0d1f38cf85
Refactor all JS API calls #360 (#375)
* 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
2019-08-30 08:08:00 -04:00

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;
}
}