Better user group management and object observers

This commit is contained in:
James Cole
2023-09-21 11:29:09 +02:00
parent c3bc1af7b5
commit 724a16944a
31 changed files with 1253 additions and 73 deletions

View File

@@ -201,6 +201,14 @@ class TransactionJournal extends Model
return $this->morphMany(Attachment::class, 'attachable');
}
/**
* @return MorphMany
*/
public function auditLogEntries(): MorphMany
{
return $this->morphMany(AuditLogEntry::class, 'auditable');
}
/**
* @return BelongsTo
*/
@@ -254,7 +262,7 @@ class TransactionJournal extends Model
}
/**
* Get all of the notes.
* Get all the notes.
*/
public function notes(): MorphMany
{