9e5386264f
* SimBrief integration #405 * Add briefing as API response; add acars_xml field #405
17 lines
289 B
PHP
17 lines
289 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use App\Contracts\Resource;
|
|
|
|
class AirportDistance extends Resource
|
|
{
|
|
public function toArray($request)
|
|
{
|
|
$res = parent::toArray($request);
|
|
$res['distance'] = $res['distance']->getResponseUnits();
|
|
|
|
return $res;
|
|
}
|
|
}
|