Api\StarterKit\Utils\ApiResponse::respondWithCollection PHP 메소드

respondWithCollection() 공개 메소드

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