-
Hello, Route::get('/member/{id}', function (int $id) {
return $id;
})->where(['id' => '[0-9]+']); I wanted to know if I can use this with the attributes. Maybe we can use a method like this : #[Get('/member/{id}', params: [
'id' => '[0-9]+'
])]
public function memberId(int $id) {
... |
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Apr 8, 2021
Replies: 1 comment
-
I created a PR for this issue #31 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
freekmurze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created a PR for this issue #31