* Discord notifications for events #433 * Style fixes * Check for blank webhook urls and disable * Cleanup items after review * Changes and fixes * Style fixes * Don't load env for testing * Fix status text * Refactor saving fields/fares so events get the latest data * Cleanup * Style fixes
This commit is contained in:
@@ -12,6 +12,7 @@ use Carbon\Carbon;
|
||||
* @property int id
|
||||
* @property mixed subfleet_id
|
||||
* @property string airport_id The apt where the aircraft is
|
||||
* @property string ident
|
||||
* @property string name
|
||||
* @property string icao
|
||||
* @property string registration
|
||||
@@ -71,6 +72,14 @@ class Aircraft extends Model
|
||||
'zfw' => 'nullable|numeric',
|
||||
];
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getIdentAttribute(): string
|
||||
{
|
||||
return $this->registration.' ('.$this->icao.')';
|
||||
}
|
||||
|
||||
/**
|
||||
* See if this aircraft is active
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user