public function show($id)
    {
        try {
            $category = $this->repository->findById($id);

            return $this->view('categories.show', compact('category'));
        } catch (ModelNotFoundException $e) {
            return $this->redirectNotFound();
        }
    }
public function show($id)
    {
        try {
            $category = $this->repository->findById($id);

            return $this->view('categories.show', compact('category'));
        } catch (ModelNotFoundException $e) {
            return $this->redirectNotFound();
        }
    }
public function show ( $ id ) { try { $ category = $ this -> repository -> findById ( $ id ) ; return $ this -> view ( 'categories.show' , compact ( 'category' ) ) ; } catch ( ModelNotFoundException $ e ) { return $ this -> redirectNotFound ( ) ; } }
Display the specified category.

@param int $id

@return Response
Display the specified category .