phpvms/app/Http/Resources/Bid.php

17 lines
264 B
PHP
Raw Normal View History

2018-02-28 03:11:48 +08:00
<?php
namespace App\Http\Resources;
use App\Contracts\Resource;
class Bid extends Resource
2018-02-28 03:11:48 +08:00
{
public function toArray($request)
{
$res = parent::toArray($request);
$res['flight'] = new Flight($this->flight);
2018-02-28 03:11:48 +08:00
return $res;
2018-02-28 03:11:48 +08:00
}
}