public function show($id)
    {
        $item = $this->repo->getById($id);

        if ( ! $item)
        {
            return $this->respondNotFound();
        }

        $resource = new Fractal\Resource\Item($item, new $this->transformerClass);
        return $this->fractal->createData($resource)->toArray();
    }
public function show($id)
    {
        $item = $this->repo->getById($id);

        if ( ! $item)
        {
            return $this->respondNotFound();
        }

        $resource = new Fractal\Resource\Item($item, new $this->transformerClass);
        return $this->fractal->createData($resource)->toArray();
    }
public function show ( $ id ) { $ item = $ this -> repo -> getById ( $ id ) ; if ( ! $ item ) { return $ this -> respondNotFound ( ) ; } $ resource = new Fractal \ Resource \ Item ( $ item , new $ this -> transformerClass ) ; return $ this -> fractal -> createData ( $ resource ) -> toArray ( ) ; }
Return an item by it's id

@param $id
@return mixed
Return an item by it s id