diff --git a/app/Http/Controllers/TrickController.php b/app/Http/Controllers/TrickController.php index 29e49f1..7a8965c 100644 --- a/app/Http/Controllers/TrickController.php +++ b/app/Http/Controllers/TrickController.php @@ -20,7 +20,7 @@ public function index() public function create() { return view('tricks.create', [ - 'tagOptions' => Tag::all()->map(fn ($tag) => ['value' => $tag->id, 'label' => $tag->name])->toArray(), + 'tagOptions' => Tag::all()->map(fn ($tag) => ['value' => $tag->name, 'label' => $tag->name])->toArray(), ]); } diff --git a/resources/views/tricks/create.blade.php b/resources/views/tricks/create.blade.php index 5a0644c..e4a49dc 100644 --- a/resources/views/tricks/create.blade.php +++ b/resources/views/tricks/create.blade.php @@ -27,7 +27,7 @@