Skip to content

Commit a149237

Browse files
committed
update README.md
1 parent b290916 commit a149237

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: README.md

+16
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- [API Methods](#api-methods)
2020
- [Ticket API Methods](#ticket-api-methods)
2121
- [Ticket Relationship API Methods](#ticket-relationship-api-methods)
22+
- [Ticket Scopes](#ticket-scopes)
2223
- [Category & Label Scopes](#category--label-scopes)
2324
- [Testing](#testing)
2425
- [Changelog](#changelog)
@@ -230,6 +231,21 @@ The `ticket` model has also a list of methods for interacting with another relat
230231
231232
The `commentAsUser` accepts a user as a first argument, if it's null, the __authenticated__ user will be user as default.
232233

234+
### Ticket Scopes
235+
The `ticket` model has also a list of scopes to begin filter with.
236+
237+
| Method | Arguments | Description | Example |
238+
|---|---|---|---|
239+
| `closed` |`void` | get the closed tickets | `Ticket::closed()` |
240+
| `opened` |`void` | get the opened tickets | `Ticket::opened()` |
241+
| `resolved` |`void` | get the resolved tickets | `Ticket::resolved()` |
242+
| `locked` |`void` | get the locked tickets | `Ticket::locked()` |
243+
| `unlocked` |`void` | get the unlocked tickets | `Ticket::unlocked()` |
244+
| `withLowPriority` |`void` | get the low priority tickets | `Ticket::withLowPriority()` |
245+
| `withNormalPriority` |`void` | get the normal priority tickets | `Ticket::withNormalPriority()` |
246+
| `withHighPriority` |`void` | get the high priority tickets | `Ticket::withHighPriority()` |
247+
| `withPriority` |`string` $priority | get the withPriority tickets | `Ticket::withPriority('critical')` |
248+
233249
### Category & Label Scopes
234250
| Method | Arguments | Description | Example |
235251
|---|---|---|---|

0 commit comments

Comments
 (0)