Skip to content

Commit 69de02c

Browse files
authored
Update typo in README.md
Coz It's retrieving the first data row, so it should be in singular form.
1 parent 869315b commit 69de02c

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)