src/APIResponse.php
public function respondResourceConflictWithData(
        $payload = null,
        $message = "Resource Already Exists",
        $responseCode = ResponseHTTP::HTTP_CONFLICT
    ) {
        return $this->setStatusCode($responseCode)
            ->respondWithMessageAndPayload($payload, $message);
    }
public function respondResourceConflictWithData(
        $payload = null,
        $message = "Resource Already Exists",
        $responseCode = ResponseHTTP::HTTP_CONFLICT
    ) {
        return $this->setStatusCode($responseCode)
            ->respondWithMessageAndPayload($payload, $message);
    }
public function respondResourceConflictWithData ( $ payload = null , $ message = "Resource Already Exists" , $ responseCode = ResponseHTTP :: HTTP_CONFLICT ) { return $ this -> setStatusCode ( $ responseCode ) -> respondWithMessageAndPayload ( $ payload , $ message ) ; }
Used when response resource conflict with data

@param null   $payload
@param string $message
@param int    $responseCode

@return mixed
Used when response resource conflict with data