Add "Notes" to Airports (#1467)
* Notes for Airports Adds capability of having notes/remarks for airports, includes * New database field * Airport Model change * CSV Import/Export capability for notes * Admin Airports list page change * Admin Airports edit page change * Default Template Airport show page change * Update Airport Tests * Add the new field to source csv * Check if the import works * Update AirportFactory.php Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
This commit is contained in:
@@ -19,6 +19,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
* @property string location
|
||||
* @property string country
|
||||
* @property string timezone
|
||||
* @property string notes
|
||||
* @property float ground_handling_cost
|
||||
* @property float fuel_100ll_cost
|
||||
* @property float fuel_jeta_cost
|
||||
@@ -56,6 +57,7 @@ class Airport extends Model
|
||||
'fuel_100ll_cost',
|
||||
'fuel_jeta_cost',
|
||||
'fuel_mogas_cost',
|
||||
'notes',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@@ -81,8 +83,7 @@ class Airport extends Model
|
||||
'ground_handling_cost' => 'nullable|numeric',
|
||||
'fuel_100ll_cost' => 'nullable|numeric',
|
||||
'fuel_jeta_cost' => 'nullable|numeric',
|
||||
|
||||
'fuel_mogas_cost' => 'nullable|numeric',
|
||||
'fuel_mogas_cost' => 'nullable|numeric',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user