diff --git a/app/Http/Controllers/CategoryController.php b/app/Http/Controllers/CategoryController.php index b9447b9..b891b82 100644 --- a/app/Http/Controllers/CategoryController.php +++ b/app/Http/Controllers/CategoryController.php @@ -40,7 +40,7 @@ public function show(Category $category) { $this->authorize('view', $category); - return $category; + return View::make('categories.show', ['category' => $category]); } public function update(CategoryRequest $request, Category $category) diff --git a/resources/views/categories/index.blade.php b/resources/views/categories/index.blade.php index ed41f0f..c08a783 100644 --- a/resources/views/categories/index.blade.php +++ b/resources/views/categories/index.blade.php @@ -17,7 +17,9 @@ x-bind:class="{ 'highlighted': hovered === $el.id }" >