plot actual flight path and datapoints from ACARS table

This commit is contained in:
Nabeel Shahzad
2017-12-26 15:26:12 -06:00
parent a931435b42
commit 4f6b8e8e23
5 changed files with 118 additions and 26 deletions

View File

@@ -90,6 +90,12 @@ class Pirep extends BaseModel
/**
* Foreign Keys
*/
public function acars()
{
return $this->hasMany('App\Models\Acars', 'pirep_id');
}
public function aircraft()
{
return $this->belongsTo('App\Models\Aircraft', 'aircraft_id');