File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1313
1414 - name : Dependabot metadata
1515 id : metadata
16- uses : dependabot/fetch-metadata@v1.3.6
16+ uses : dependabot/fetch-metadata@v1.6.0
1717 with :
1818 github-token : " ${{ secrets.GITHUB_TOKEN }}"
1919
Original file line number Diff line number Diff line change 1313 ref : ${{ github.head_ref }}
1414
1515 - name : Fix PHP code style issues
16- uses : aglipanci/laravel-pint-action@2.2 .0
16+ uses : aglipanci/laravel-pint-action@2.3 .0
1717
1818 - name : Commit changes
1919 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)
9999 $ticket = $user->tickets()
100100 ->create($request->validated());
101101
102- $categories = Category::first();
103- $labels = Label::first();
102+ $category = Category::first();
103+ $label = Label::first();
104104
105- $ticket->attachCategories($categories );
106- $ticket->attachLabels($labels );
105+ $ticket->attachCategories($category );
106+ $ticket->attachLabels($label );
107107
108108 // or you can create the categories & the tickets directly by:
109109 // $ticket->categories()->create(...);
Original file line number Diff line number Diff line change 22
33namespace Coderflex \LaravelTicket \Concerns ;
44
5+ use Coderflex \LaravelTicket \Enums \Priority ;
56use Coderflex \LaravelTicket \Enums \Status ;
67use Illuminate \Database \Eloquent \Model ;
7- use Coderflex \LaravelTicket \Enums \Priority ;
88
99trait InteractsWithTickets
1010{
@@ -203,6 +203,7 @@ public function assignTo(Model|int $user): self
203203 public function makePriorityAsLow (): self
204204 {
205205 $ this ->update (['priority ' => Priority::LOW ->value ]);
206+
206207 return $ this ;
207208 }
208209
@@ -212,6 +213,7 @@ public function makePriorityAsLow(): self
212213 public function makePriorityAsNormal (): self
213214 {
214215 $ this ->update (['priority ' => Priority::NORMAL ->value ]);
216+
215217 return $ this ;
216218 }
217219
@@ -221,6 +223,7 @@ public function makePriorityAsNormal(): self
221223 public function makePriorityAsHigh (): self
222224 {
223225 $ this ->update (['priority ' => Priority::HIGH ->value ]);
226+
224227 return $ this ;
225228 }
226229}
You can’t perform that action at this time.
0 commit comments