20 lines
337 B
PHP
20 lines
337 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources;
|
|
|
|
use App\Contracts\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->flight_id])),
|
|
];
|
|
}
|
|
}
|