Give journals a location.

This commit is contained in:
James Cole
2021-02-16 09:53:28 +01:00
parent 2f14753405
commit d5d0e6b4ba

View File

@@ -213,6 +213,15 @@ class TransactionJournal extends Model
return $this->belongsTo(Bill::class);
}
/**
* @codeCoverageIgnore
* @return MorphMany
*/
public function locations(): MorphMany
{
return $this->morphMany(Location::class, 'locatable');
}
/**
* @codeCoverageIgnore
* @return BelongsToMany