protected function respondWithItem(
        $item,
        $resource_name = '',
        array $links = [],
        array $included = []
    ) {
        $resource = new Item($item, $resource_name, $links, $included);
        return $this->respondWithArray($resource->toArray());
    }
protected function respondWithItem(
        $item,
        $resource_name = '',
        array $links = [],
        array $included = []
    ) {
        $resource = new Item($item, $resource_name, $links, $included);
        return $this->respondWithArray($resource->toArray());
    }
protected function respondWithItem ( $ item , $ resource_name = '' , array $ links = [ ] , array $ included = [ ] ) { $ resource = new Item ( $ item , $ resource_name , $ links , $ included ) ; return $ this -> respondWithArray ( $ resource -> toArray ( ) ) ; }
Response with item

@param Object $item
@param $resource_name
@param array $links
@param array $included
@return Json Object
Response with item