phpvms/app/Http/Resources/Acars.php

26 lines
425 B
PHP
Raw Normal View History

<?php
namespace App\Http\Resources;
class Acars extends Response
{
/**
* Transform the resource into an array.
*
2018-08-27 00:40:04 +08:00
* @param \Illuminate\Http\Request $request
*
* @return array
*/
public function toArray($request)
{
$res = parent::toArray($request);
$this->checkUnitFields($res, [
'distance',
'fuel',
]);
return $res;
}
}