Bind a collection to a transformer and start building a response.
/** * Bind a collection to a transformer and start building a response. * * @param \Illuminate\Support\Collection $collection * @param object $transformer * @param array $parameters * @param \Closure $after * @return \Dingo\Api\Http\Response * @static */ public static function collection($collection, $transformer, $parameters = array(), $after = null) { return \Dingo\Api\Http\Response\Factory::collection($collection, $transformer, $parameters, $after); }