File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 13
13
14
14
- name : Dependabot metadata
15
15
id : metadata
16
- uses : dependabot/fetch-metadata@v1.3.6
16
+ uses : dependabot/fetch-metadata@v1.6.0
17
17
with :
18
18
github-token : " ${{ secrets.GITHUB_TOKEN }}"
19
19
Original file line number Diff line number Diff line change 13
13
ref : ${{ github.head_ref }}
14
14
15
15
- name : Fix PHP code style issues
16
- uses : aglipanci/laravel-pint-action@2.2 .0
16
+ uses : aglipanci/laravel-pint-action@2.3 .0
17
17
18
18
- name : Commit changes
19
19
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change @@ -99,11 +99,11 @@ public function store(Request $request)
99
99
$ticket = $user->tickets()
100
100
->create($request->validated());
101
101
102
- $categories = Category::first();
103
- $labels = Label::first();
102
+ $category = Category::first();
103
+ $label = Label::first();
104
104
105
- $ticket->attachCategories($categories );
106
- $ticket->attachLabels($labels );
105
+ $ticket->attachCategories($category );
106
+ $ticket->attachLabels($label );
107
107
108
108
// or you can create the categories & the tickets directly by:
109
109
// $ticket->categories()->create(...);
Original file line number Diff line number Diff line change 2
2
3
3
namespace Coderflex \LaravelTicket \Concerns ;
4
4
5
+ use Coderflex \LaravelTicket \Enums \Priority ;
5
6
use Coderflex \LaravelTicket \Enums \Status ;
6
7
use Illuminate \Database \Eloquent \Model ;
7
- use Coderflex \LaravelTicket \Enums \Priority ;
8
8
9
9
trait InteractsWithTickets
10
10
{
@@ -203,6 +203,7 @@ public function assignTo(Model|int $user): self
203
203
public function makePriorityAsLow (): self
204
204
{
205
205
$ this ->update (['priority ' => Priority::LOW ->value ]);
206
+
206
207
return $ this ;
207
208
}
208
209
@@ -212,6 +213,7 @@ public function makePriorityAsLow(): self
212
213
public function makePriorityAsNormal (): self
213
214
{
214
215
$ this ->update (['priority ' => Priority::NORMAL ->value ]);
216
+
215
217
return $ this ;
216
218
}
217
219
@@ -221,6 +223,7 @@ public function makePriorityAsNormal(): self
221
223
public function makePriorityAsHigh (): self
222
224
{
223
225
$ this ->update (['priority ' => Priority::HIGH ->value ]);
226
+
224
227
return $ this ;
225
228
}
226
229
}
You can’t perform that action at this time.
0 commit comments