Api\StarterKit\Utils\ApiResponse::respondMethodNotAllowed PHP Method

respondMethodNotAllowed() public method

public respondMethodNotAllowed ( string $message = 'Method Not Allowed!' ) : mixed
$message string
return mixed
    public function respondMethodNotAllowed($message = 'Method Not Allowed!')
    {
        $this->setStatusCode(Response::HTTP_METHOD_NOT_ALLOWED)->response()->error($message, $this->getStatusCode());
    }