Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create some commonly used regular expression patterns methods. #1

Open
DevAmirul opened this issue Nov 12, 2023 · 0 comments
Open

Create some commonly used regular expression patterns methods. #1

DevAmirul opened this issue Nov 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@DevAmirul
Copy link
Owner

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.

@DevAmirul DevAmirul added help wanted Extra attention is needed good first issue Good for newcomers and removed help wanted Extra attention is needed labels Nov 12, 2023
@DevAmirul DevAmirul added enhancement New feature or request and removed good first issue Good for newcomers labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant