Add MTOW and ZFW to aircraft editor #775 (#805)

Add MTOW and ZFW to aircraft editor #775
This commit is contained in:
Nabeel S
2020-09-03 13:29:24 -04:00
committed by GitHub
parent e99c22b007
commit 50a0b89caa
5 changed files with 88 additions and 15 deletions

View File

@@ -16,6 +16,8 @@ use Carbon\Carbon;
* @property string icao
* @property string registration
* @property int flight_time
* @property float mtow
* @property float zfw
* @property string hex_code
* @property Airport airport
* @property Subfleet subfleet
@@ -39,6 +41,7 @@ class Aircraft extends Model
'registration',
'hex_code',
'flight_time',
'mtow',
'zfw',
'status',
'state',
@@ -49,6 +52,7 @@ class Aircraft extends Model
*/
protected $casts = [
'subfleet_id' => 'integer',
'mtow' => 'float',
'zfw' => 'float',
'flight_time' => 'float',
'state' => 'integer',
@@ -62,6 +66,8 @@ class Aircraft extends Model
'name' => 'required',
'status' => 'required',
'registration' => 'required',
'mtow' => 'nullable|number',
'zfw' => 'nullable|number',
];
/**