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

@@ -154,7 +154,7 @@ class Attachment extends Model
}
/**
* Get all of the notes.
* Get all the notes.
*/
public function notes(): MorphMany
{

View File

@@ -97,7 +97,7 @@ class Location extends Model
}
/**
* Get all of the accounts.
* Get all the accounts.
*/
public function accounts(): MorphMany
{
@@ -105,7 +105,7 @@ class Location extends Model
}
/**
* Get all of the owning attachable models.
* Get all the owning attachable models.
*
*
* @return MorphTo

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
{