diff --git a/docs/guide/upgrading/9.0.md b/docs/guide/upgrading/9.0.md index a1c76ae8d..96447aa82 100644 --- a/docs/guide/upgrading/9.0.md +++ b/docs/guide/upgrading/9.0.md @@ -113,7 +113,7 @@ Be sure to [register this new Service Provider](https://laravel.com/docs/provide ## Middleware updates (legacy config only) -Due to migration to inertia, two middleware must be added to the config. Also, `SetSharpLocale` must be removed from `api` group. +Due to migration to inertia, three middleware must be added to the config. Also, `SetSharpLocale` must be removed from `api` group. ::: info If you migrated to the new config builder class, you should be ok unless you have explicitly overridden the whole middleware list. @@ -126,7 +126,11 @@ Here is the impact on the deprecated config file: return [ 'middleware' => [ - // ... + 'common' => [ + // ... + \Code16\Sharp\Http\Middleware\HandleGlobalFilters::class, + \Illuminate\Routing\Middleware\SubstituteBindings::class, // <- be sure to place this one after HandleGlobalFilters + ], 'web' => [ // ... \Code16\Sharp\Http\Middleware\HandleSharpErrors::class, diff --git a/resources/js/Pages/Show/Show.vue b/resources/js/Pages/Show/Show.vue index fec820e87..93f3a37b8 100644 --- a/resources/js/Pages/Show/Show.vue +++ b/resources/js/Pages/Show/Show.vue @@ -340,7 +340,7 @@