final class RouteNotFoundException extends RuntimeException (View source)

Represents a failed route lookup without retaining a request query string.

Methods

forRequest(string $method, string $path)

Creates a diagnostic containing only the request method and URI path.

forName(string $name)

Creates a diagnostic for an application-defined route name that is not registered.

Details

forRequest

static RouteNotFoundException forRequest(string $method, string $path)

Creates a diagnostic containing only the request method and URI path.

Parameters

string $method
string $path

Return Value

RouteNotFoundException

forName

static RouteNotFoundException forName(string $name)

Creates a diagnostic for an application-defined route name that is not registered.

Parameters

string $name

Return Value

RouteNotFoundException