Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Dec 20, 2024
1 parent bacc777 commit 7e48dca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Models/Incident.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ public function scopeStatus(Builder $query, IncidentStatusEnum $status): void
$query->where('status', $status);
}

/**
* Scope to unresolved incidents.
*/
public function scopeUnresolved(Builder $query): void
{
$query->whereIn('status', IncidentStatusEnum::unresolved());
Expand Down

0 comments on commit 7e48dca

Please sign in to comment.