Move the model callbacks into Observables; reduce caching since it held balances incorrectly
This commit is contained in:
@@ -40,9 +40,9 @@ class Fare extends BaseModel
|
||||
* any foreign keys
|
||||
*/
|
||||
|
||||
public function subfleets() {
|
||||
public function subfleets()
|
||||
{
|
||||
return $this->belongsToMany(Subfleet::class, 'subfleet_fare')
|
||||
->withPivot('price', 'cost', 'capacity');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user