2020-03-23 21:31:35 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
|
2020-05-16 06:20:16 +08:00
|
|
|
use App\Contracts\Resource;
|
2020-03-23 21:31:35 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @mixin \App\Models\SimBrief
|
|
|
|
*/
|
|
|
|
class SimBrief extends Resource
|
|
|
|
{
|
|
|
|
public function toArray($request)
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'id' => $this->id,
|
2020-04-16 03:12:57 +08:00
|
|
|
'url' => url(route('api.flights.briefing', ['id' => $this->flight_id])),
|
2020-03-23 21:31:35 +08:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|