2017-12-13 06:58:27 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
|
2020-03-23 21:31:35 +08:00
|
|
|
use App\Contracts\Resource;
|
|
|
|
|
2022-02-15 01:53:12 +08:00
|
|
|
/**
|
|
|
|
* @mixin \App\Models\Aircraft
|
|
|
|
*/
|
2020-03-23 21:31:35 +08:00
|
|
|
class Aircraft extends Resource
|
2017-12-13 06:58:27 +08:00
|
|
|
{
|
2022-02-15 01:53:12 +08:00
|
|
|
public function toArray($request)
|
|
|
|
{
|
|
|
|
$res = parent::toArray($request);
|
|
|
|
$res['ident'] = $this->ident;
|
|
|
|
|
|
|
|
return $res;
|
|
|
|
}
|
2017-12-13 06:58:27 +08:00
|
|
|
}
|