Add 'phase' as response output, deprecate "status"
This commit is contained in:
@@ -27,6 +27,7 @@ class Pirep extends Resource
|
|||||||
{
|
{
|
||||||
$res = parent::toArray($request);
|
$res = parent::toArray($request);
|
||||||
$res['ident'] = $this->ident;
|
$res['ident'] = $this->ident;
|
||||||
|
$res['phase'] = $this->status;
|
||||||
$res['status_text'] = PirepStatus::label($this->status);
|
$res['status_text'] = PirepStatus::label($this->status);
|
||||||
|
|
||||||
// Set these to the response units
|
// Set these to the response units
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ use App\Services\AirportService;
|
|||||||
class Weather extends Widget
|
class Weather extends Widget
|
||||||
{
|
{
|
||||||
protected $config = [
|
protected $config = [
|
||||||
'icao' => null,
|
'icao' => null,
|
||||||
|
'raw_only' => null,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user