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

Routing system: add сonstraints #33

Closed
AnthonySnow887 opened this issue May 13, 2022 · 1 comment
Closed

Routing system: add сonstraints #33

AnthonySnow887 opened this issue May 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@AnthonySnow887
Copy link
Owner

RUS

Добавить constraints, чтобы использовать автоматическую проверку на основе регулярных выражений для динамического сегмента:

get('/photos/:id', [ 'to' => 'Photos#show', 'constraints' => [ 'id' => '/[A-Z]\d{5}/' ] ] );

ENG

Add constraints to use automatic regular expression validation for the dynamic segment:

get('/photos/:id', [ 'to' => 'Photos#show', 'constraints' => [ 'id' => '/[A-Z]\d{5}/' ] ] );
@AnthonySnow887 AnthonySnow887 added the enhancement New feature or request label May 13, 2022
@AnthonySnow887
Copy link
Owner Author

RUS

Добавлено в коммите e202eb8

ENG

Added in commit e202eb8

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