Replies: 1 comment
-
It would be cool, if this could make use of URI templates as introduced into Laravel 9 via #45982 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that
Http::fake
does not allow a wildcard as "route parameter". A wildcard only works at the end of the string.An example:
The route I want to mock in this example would be something like
/users/8665/settings
.In this case where you would also want to mock a route like
/users/8665/likes
you can't just use/users/*
to fix the example because this would then be applicable to both, which is unwanted. With nested routes it is pretty easy to run into this scenario.Would there be a good reason not to allow this?
Beta Was this translation helpful? Give feedback.
All reactions