Api\StarterKit\Utils\ApiResponse::respondWithCollection PHP Method

respondWithCollection() public method

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