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

@@ -38,10 +38,8 @@ class Fare extends BaseModel
*/
public function subfleets() {
return $this->belongsToMany(
'App\Models\Subfleet',
'subfleet_fare'
)->withPivot('price', 'cost', 'capacity');
return $this->belongsToMany(Subfleet::class, 'subfleet_fare')
->withPivot('price', 'cost', 'capacity');
}
}