fc7ad7eb6a
* Refactoring for Simbrief not working #1005 * Style fixes * Update tests for new briefing URL * Check the OFP user * Comment out user check temporarily
20 lines
330 B
PHP
20 lines
330 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->id])),
|
|
];
|
|
}
|
|
}
|