public function respondWithCollection(Collection $data, TransformerAbstract $transformer = null) { return $this->response()->collection($data, $this->getTransformer($transformer)); }