Skip to content

Create some commonly used regular expression patterns methods. #1

@DevAmirul

Description

@DevAmirul

For convenience, some commonly used regular expression patterns have helper methods that allow you to quickly add pattern constraints to your routes:

example :

$router->get('/user/:id/:name', function () {
    // ...
})->whereNumber('id')->whereAlpha('name');

If the incoming request does not match the route pattern constraints, an exception will be returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions