We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 869315b + 69de02c commit ab85159Copy full SHA for ab85159
README.md
@@ -99,11 +99,11 @@ public function store(Request $request)
99
$ticket = $user->tickets()
100
->create($request->validated());
101
102
- $categories = Category::first();
103
- $labels = Label::first();
+ $category = Category::first();
+ $label = Label::first();
104
105
- $ticket->attachCategories($categories);
106
- $ticket->attachLabels($labels);
+ $ticket->attachCategories($category);
+ $ticket->attachLabels($label);
107
108
// or you can create the categories & the tickets directly by:
109
// $ticket->categories()->create(...);
0 commit comments