fares & aircraft fares

This commit is contained in:
Nabeel Shahzad
2017-06-10 01:50:00 -05:00
parent f4f0657cb8
commit bacc372985
7 changed files with 92 additions and 10 deletions

View File

@@ -62,4 +62,9 @@ class Aircraft extends Model
'aircraft_class_id'
);
}
public function fares() {
# aircraft_fare == table name
return $this->belongsToMany('App\Models\Fare', 'aircraft_fare');
}
}