src/Api/Response/RestResponseBuilder.php
public function response($content, $statusCode = 200)
    {
        return response()
            ->json($this->convertContent($content))
            ->setStatusCode($statusCode);
    }
public function response($content, $statusCode = 200)
    {
        return response()
            ->json($this->convertContent($content))
            ->setStatusCode($statusCode);
    }
public function response ( $ content , $ statusCode = 200 ) { return response ( ) -> json ( $ this -> convertContent ( $ content ) ) -> setStatusCode ( $ statusCode ) ; }
Returns API-formatted response based on given content.

@param mixed $content
@param int   $statusCode
@return mixed
Returns API - formatted response based on given content .