Since [Movie] is a wildcard directory, all requests made to movies/** were considered as potentially having a model bind routable segment. So, a request made to movies/create was returning a 404 because create is not the ID of any movie.
Now, with my pull request, the state is only mutated with model bind routable segments if there are plans to continue iterating. If that is not the case (for example, for literal views like movies/create), we simply move to the next element of the pipeline with the initial state.
Fixes https://github.com/laravel/folio/issues/114.
In this example:
Since
[Movie]
is a wildcard directory, all requests made tomovies/**
were considered as potentially having a model bind routable segment. So, a request made tomovies/create
was returning a 404 becausecreate
is not the ID of any movie.Now, with my pull request, the state is only mutated with model bind routable segments if there are plans to continue iterating. If that is not the case (for example, for literal views like movies/create), we simply move to the next element of the pipeline with the initial state.