This commit is contained in:
James Cole
2022-03-19 11:38:02 +01:00
parent 52a5995bd1
commit 1e1aa28ab2
8 changed files with 79 additions and 7 deletions

View File

@@ -150,6 +150,15 @@ class Budget extends Model
return $this->hasMany(BudgetLimit::class);
}
/**
* @codeCoverageIgnore
* Get all of the notes.
*/
public function notes(): MorphMany
{
return $this->morphMany(Note::class, 'noteable');
}
/**
* @codeCoverageIgnore
* @return BelongsToMany