src/Http/MakesResponses.php
public function success($data = null, $transformer = null, string $resourceKey = null): SuccessResponseBuilder
    {
        return app(Responder::class)->success(...func_get_args());
    }
public function success($data = null, $transformer = null, string $resourceKey = null): SuccessResponseBuilder
    {
        return app(Responder::class)->success(...func_get_args());
    }
Build a successful response.

@param  mixed                                                          $data
@param  callable|string|\Flugg\Responder\Transformers\Transformer|null $transformer
@param  string|null                                                    $resourceKey
@return \Flugg\Responder\Http\Responses\SuccessResponseBuilder