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