* SimBrief integration #405 * Add briefing as API response; add acars_xml field #405
This commit is contained in:
@@ -239,6 +239,12 @@ class Flight extends Model
|
||||
return $this->hasMany(FlightFieldValue::class, 'flight_id');
|
||||
}
|
||||
|
||||
public function simbrief()
|
||||
{
|
||||
// id = key from table, flight_id = reference key
|
||||
return $this->belongsTo(SimBrief::class, 'id', 'flight_id');
|
||||
}
|
||||
|
||||
public function subfleets()
|
||||
{
|
||||
return $this->belongsToMany(Subfleet::class, 'flight_subfleet');
|
||||
|
||||
Reference in New Issue
Block a user