src/APIResponse.php
public function respondCreatedWithPayload($payload = null, $message = "Created")
    {

        $reponse = $this->setStatusCode(ResponseHTTP::HTTP_CREATED)
            ->respondWithMessageAndPayload($payload, $message);
        return $reponse;
    }
public function respondCreatedWithPayload($payload = null, $message = "Created")
    {

        $reponse = $this->setStatusCode(ResponseHTTP::HTTP_CREATED)
            ->respondWithMessageAndPayload($payload, $message);
        return $reponse;
    }
public function respondCreatedWithPayload ( $ payload = null , $ message = "Created" ) { $ reponse = $ this -> setStatusCode ( ResponseHTTP :: HTTP_CREATED ) -> respondWithMessageAndPayload ( $ payload , $ message ) ; return $ reponse ; }
Respond created with the payload

@param null   $payload
@param string $message

@return mixed
Respond created with the payload