phpvms/app/Http/Resources/Aircraft.php

20 lines
294 B
PHP
Raw Normal View History

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