Skip to content

Commit

Permalink
Merge pull request #41 from JaberWiki/main
Browse files Browse the repository at this point in the history
Update typo in README.md
  • Loading branch information
ousid authored Sep 6, 2023
2 parents 869315b + 69de02c commit ab85159
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ public function store(Request $request)
$ticket = $user->tickets()
->create($request->validated());

$categories = Category::first();
$labels = Label::first();
$category = Category::first();
$label = Label::first();

$ticket->attachCategories($categories);
$ticket->attachLabels($labels);
$ticket->attachCategories($category);
$ticket->attachLabels($label);

// or you can create the categories & the tickets directly by:
// $ticket->categories()->create(...);
Expand Down

0 comments on commit ab85159

Please sign in to comment.