Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.7] Add original parameters to Route #27056
Recently had a need to retrieve original (on-bound) route's parameters values (similar to original attributes values in Eloquent), such feature was requested for some time too. Here is the issue laravel/ideas#1260 where this feature has been requested/discussed previously.
This PR just adds additional field to
So it makes sense to be here because it indicates that you are trying to access parameters of yet to be bound route instance (which is a clear indication of an error in your code). It was already thrown when accessing unset
Sure, will append this PR with tests. My bad.