Skip to content

MethodNotAllowedException


Methods

__construct

public __construct(string $message = 'The method specified in the request is not allowed for the requested resource. ' . 'The resource was found and is accessible, but cannot be accessed using this method.', int $code = 405, ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$message string
$code int
$previous ?\Throwable

Inherited methods

__construct

public __construct(?string $message = '', int $code = 0, ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$message ?string
$code int
$previous ?\Throwable

Throws:


__toString

public __toString(): string