示例#1
0
 /**
  * Respond with a single item.
  *
  * @param  mixed $item
  * @param  mixed $callback
  * @return Illuminate\Http\Response
  */
 protected function respondWithItem($item, $callback)
 {
     $out = $this->output->asItemArray($item, $callback);
     return $this->respondWithArray($out);
 }
 /**
  * Respond with a single item.
  *
  * @param  mixed $item
  * @param  mixed $transformer
  * @return Illuminate\Http\Response
  */
 protected function respondWithItem($item, $transformer)
 {
     $out = $this->output->asItemArray($item, $transformer);
     return $this->respondWithArray($out);
 }