Skip to content

Commit ab85159

Browse files
authored
Merge pull request #41 from JaberWiki/main
Update typo in README.md
2 parents 869315b + 69de02c commit ab85159

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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(...);

0 commit comments

Comments
 (0)