Update: Fix Error spatie/laravel-missing-page-redirector#44568
Update: Fix Error spatie/laravel-missing-page-redirector#44568vdvcoder wants to merge 1 commit intolaravel:9.xfrom
Conversation
Since update from Laravel 9.32 to 9.33 the package spatie/laravel-missing-page-redirector did not work anymore. This should fix it.
|
Sent PR spatie/laravel-missing-page-redirector#78 to @timacdonald you may want to look on the reasoning on that PR. For short, as PR #44339 introduced the I believe this is kind of a breaking change, as maybe other packages using private Router instances, for similar reasons as the package linked above, could start failing to dispatch closure based routes. As this ship has been sailed already, maybe we could consider changing this line on framework/src/Illuminate/Routing/Router.php Line 138 in a1611c7 To $this->container = $container ?: Container::getInstance();So at least when no container is provided it uses the global one instead, and avoid this issue. What do you think? |
|
Or the alternative would be dropping the new Instead of binding to the interface, and dispatching an interface that might be unbounded on the container, we ask the container for the concrete class, and PrecognitionServiceProvider can alias/rebind its subclass when needed. |
|
Looks like an alternative was merged to the package itself. |
Since update from Laravel 9.32 to 9.33 the package spatie/laravel-missing-page-redirector did not work anymore.
This should fix it.