/**
  * Respond with a collection of items.
  *
  * @param  array $collection
  * @param  mixed $callback
  * @return Illuminate\Http\Response
  */
 protected function respondWithCollection($collection, $callback)
 {
     $out = $this->output->asCollectionArray($collection, $callback);
     return $this->respondWithArray($out);
 }
 /**
  * Respond with a collection of items.
  *
  * @param  array $collection
  * @param  mixed $transformer
  * @return Illuminate\Http\Response
  */
 protected function respondWithCollection($collection, $transformer)
 {
     $out = $this->output->asCollectionArray($collection, $transformer);
     return $this->respondWithArray($out);
 }