cleanup model relationship references

This commit is contained in:
Nabeel Shahzad
2018-01-08 09:22:12 -06:00
parent 8d65462084
commit 110d742714
13 changed files with 56 additions and 54 deletions

View File

@@ -51,10 +51,8 @@ class Subfleet extends BaseModel
public function fares()
{
return $this->belongsToMany(
Fare::class,
'subfleet_fare'
)->withPivot('price', 'cost', 'capacity');
return $this->belongsToMany(Fare::class, 'subfleet_fare')
->withPivot('price', 'cost', 'capacity');
}
public function flights()
@@ -64,9 +62,7 @@ class Subfleet extends BaseModel
public function ranks()
{
return $this->belongsToMany(
Rank::class,
'subfleet_rank'
)->withPivot('acars_pay', 'manual_pay');
return $this->belongsToMany(Rank::class, 'subfleet_rank')
->withPivot('acars_pay', 'manual_pay');
}
}