9e5386264f
* SimBrief integration #405 * Add briefing as API response; add acars_xml field #405
20 lines
347 B
PHP
20 lines
347 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\Resource;
|
|
|
|
/**
|
|
* @mixin \App\Models\SimBrief
|
|
*/
|
|
class SimBrief extends Resource
|
|
{
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'id' => $this->id,
|
|
'url' => url(route('api.flights.briefing', ['id' => $this->id])),
|
|
];
|
|
}
|
|
}
|