Type Groups

This commit is contained in:
Gogs
2021-06-03 18:34:22 +02:00
parent 9fdfe9dfb1
commit 27410bf5c2
23 changed files with 437 additions and 145 deletions
+4 -1
View File
@@ -18,7 +18,6 @@ class AircraftType extends Model
/**
* @var string The database table used by the model.
*/
// public $table = 'germanairlinesva_fleet_aircraft_types';
public $table = 'aircraft_types';
protected $connection = 'germanairlinesva_fleet';
@@ -31,6 +30,10 @@ class AircraftType extends Model
'aircraft_manufacturer' => 'GermanAirlinesVa\Fleet\Models\AircraftManufacturer',
];
public $belongsToMany = [
'aircraft_type_groups' => 'GermanAirlinesVa\Fleet\Models\AircraftTypeGroup',
];
public $hasMany = [
'aircrafts' => 'GermanAirlinesVa\Fleet\Models\Aircraft',
];