Add 'phase' as response output, deprecate "status"

This commit is contained in:
Nabeel Shahzad
2021-02-04 14:54:16 -05:00
parent 6b3207377a
commit bf77f7dd96
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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,
]; ];
/** /**