Skip to content

Commit

Permalink
feat: relation to retrieve the assigned user is added to the user model
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramkanakam87 committed Nov 7, 2024
1 parent 0e3278b commit 2cabe52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public function users(): BelongsTo
return $this->belongsTo(User::class);
}

public function assignedTo(): BelongsTo
{
return $this->belongsTo(User::class);
}

public function transformAudit(array $data): array
{
return changeAudit($data);
Expand Down

0 comments on commit 2cabe52

Please sign in to comment.