@@ -152,6 +152,7 @@ public function createCategory()
152
152
| status | ` string ` | ` open ` |
153
153
| is_resolved | ` boolean ` | ` false ` |
154
154
| is_locked | ` boolean ` | ` false ` |
155
+ | assigned_to_user_id | ` integer ` | ` NULL ` |
155
156
| created_at | ` timestamp ` | ` NULL ` |
156
157
| updated_at | ` timestamp ` | ` NULL ` |
157
158
@@ -193,25 +194,26 @@ public function createCategory()
193
194
### Ticket API Methods
194
195
The ` ticket ` model came with handy methods to use, to make your building process easy and fast, and here is the list of the available __ API__ :
195
196
196
- | Method | Arguments | Description | Example | Chainable |
197
- | ---| ---| ---| ---| ---|
198
- | ` archive ` |` void ` | archive the ticket | ` $ticket->archive() ` | ✓
199
- | ` close ` |` void ` | close the ticket | ` $ticket->close() ` | ✓
200
- | ` reopen ` |` void ` | reopen a closed ticket | ` $ticket->reopen() ` | ✓
201
- | ` markAsResolved ` |` void ` | mark the ticket as resolved | ` $ticket->markAsResolved() ` | ✓
202
- | ` markAsLocked ` |` void ` | mark the ticket as locked | ` $ticket->markAsLocked() ` | ✓
203
- | ` markAsUnlocked ` |` void ` | mark the ticket as unlocked | ` $ticket->markAsUnlocked() ` | ✓
204
- | ` markAsArchived ` |` void ` | mark the ticket as archived | ` $ticket->markAsArchived() ` | ✓
205
- | ` closeAsResolved ` |` void ` | close the ticket and marked it as resolved | ` $ticket->closeAsResolved() ` | ✓
206
- | ` closeAsUnresolved ` |` void ` | close the ticket and marked it as unresolved | ` $ticket->closeAsUnresolved() ` | ✓
207
- | ` reopenAsUnresolved ` |` void ` | reopen the ticket and marked it as unresolved | ` $ticket->reopenAsUnresolved() ` | ✓
208
- | ` isArchived ` |` void ` | check if the ticket archived | ` $ticket->isArchived() ` | ✗
209
- | ` isOpen ` |` void ` | check if the ticket open | ` $ticket->isOpen() ` | ✗
210
- | ` isClosed ` |` void ` | check if the ticket closed | ` $ticket->isClosed() ` | ✗
211
- | ` isResolved ` |` void ` | check if the ticket has a resolved status | ` $ticket->isResolved() ` | ✗
212
- | ` isUnresolved ` |` void ` | check if the ticket has an unresolved status | ` $ticket->isUnresolved() ` | ✗
213
- | ` isLocked ` |` void ` | check if the ticket is locked | ` $ticket->isLocked() ` | ✗
214
- | ` isUnlocked ` |` void ` | check if the ticket is unlocked | ` $ticket->isUnlocked() ` | ✗
197
+ | Method | Arguments | Description | Example | Chainable |
198
+ | ----------------------| ---| -----------------------------------------------| -----------------------------------------------------| ---|
199
+ | ` archive ` |` void ` | archive the ticket | ` $ticket->archive() ` | ✓
200
+ | ` close ` |` void ` | close the ticket | ` $ticket->close() ` | ✓
201
+ | ` reopen ` |` void ` | reopen a closed ticket | ` $ticket->reopen() ` | ✓
202
+ | ` markAsResolved ` |` void ` | mark the ticket as resolved | ` $ticket->markAsResolved() ` | ✓
203
+ | ` markAsLocked ` |` void ` | mark the ticket as locked | ` $ticket->markAsLocked() ` | ✓
204
+ | ` markAsUnlocked ` |` void ` | mark the ticket as unlocked | ` $ticket->markAsUnlocked() ` | ✓
205
+ | ` markAsArchived ` |` void ` | mark the ticket as archived | ` $ticket->markAsArchived() ` | ✓
206
+ | ` closeAsResolved ` |` void ` | close the ticket and marked it as resolved | ` $ticket->closeAsResolved() ` | ✓
207
+ | ` closeAsUnresolved ` |` void ` | close the ticket and marked it as unresolved | ` $ticket->closeAsUnresolved() ` | ✓
208
+ | ` reopenAsUnresolved ` |` void ` | reopen the ticket and marked it as unresolved | ` $ticket->reopenAsUnresolved() ` | ✓
209
+ | ` isArchived ` |` void ` | check if the ticket archived | ` $ticket->isArchived() ` | ✗
210
+ | ` isOpen ` |` void ` | check if the ticket open | ` $ticket->isOpen() ` | ✗
211
+ | ` isClosed ` |` void ` | check if the ticket closed | ` $ticket->isClosed() ` | ✗
212
+ | ` isResolved ` |` void ` | check if the ticket has a resolved status | ` $ticket->isResolved() ` | ✗
213
+ | ` isUnresolved ` |` void ` | check if the ticket has an unresolved status | ` $ticket->isUnresolved() ` | ✗
214
+ | ` isLocked ` |` void ` | check if the ticket is locked | ` $ticket->isLocked() ` | ✗
215
+ | ` isUnlocked ` |` void ` | check if the ticket is unlocked | ` $ticket->isUnlocked() ` | ✗
216
+ | ` assignTo ` |` void ` | assign ticket to a user | ` $ticket->assignTo($user) ` or ` $ticket->assignTo(2) ` | ✓
215
217
216
218
The __ Chainable__ column, is showing the state for the method, that if it can be chained or not, something like
217
219
``` php
0 commit comments