Skip to content

Commit b80cdd6

Browse files
committed
Merge branch 'main' into add_down_migration
2 parents 6cb48ff + ab85159 commit b80cdd6

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.github/workflows/dependabot-auto-merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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

.github/workflows/fix-php-code-style-issues.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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

README.md

+4-4
Original file line numberDiff line numberDiff 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(...);

src/Concerns/InteractsWithTickets.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Coderflex\LaravelTicket\Concerns;
44

5+
use Coderflex\LaravelTicket\Enums\Priority;
56
use Coderflex\LaravelTicket\Enums\Status;
67
use Illuminate\Database\Eloquent\Model;
7-
use Coderflex\LaravelTicket\Enums\Priority;
88

99
trait 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
}

0 commit comments

Comments
 (0)