bbec276da8
* #355 Calculate distance button in add/edit Flight page * Styling * Move add/edit flight logic out of controller and into service layer * Styling * Formatting * Run styleci against modules dir * Styleci config * Style fixes in /modules
15 lines
260 B
PHP
15 lines
260 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
class AirportDistance extends Response
|
|
{
|
|
public function toArray($request)
|
|
{
|
|
$res = parent::toArray($request);
|
|
$res['distance'] = $res['distance']->getResponseUnits();
|
|
|
|
return $res;
|
|
}
|
|
}
|