Api\StarterKit\Utils\ApiResponse::respondWithCollection PHP Méthode

respondWithCollection() public méthode

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