Skip to content

Commit 14429bb

Browse files
committed
Fix migration guide
1 parent 1467c3a commit 14429bb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/guide/upgrading/9.0.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Be sure to [register this new Service Provider](https://laravel.com/docs/provide
113113

114114
## Middleware updates (legacy config only)
115115

116-
Due to migration to inertia, two middleware must be added to the config. Also, `SetSharpLocale` must be removed from `api` group.
116+
Due to migration to inertia, three middleware must be added to the config. Also, `SetSharpLocale` must be removed from `api` group.
117117

118118
::: info
119119
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:
126126

127127
return [
128128
'middleware' => [
129-
// ...
129+
'common' => [
130+
// ...
131+
\Code16\Sharp\Http\Middleware\HandleGlobalFilters::class,
132+
\Illuminate\Routing\Middleware\SubstituteBindings::class, // <- be sure to place this one after HandleGlobalFilters
133+
],
130134
'web' => [
131135
// ...
132136
\Code16\Sharp\Http\Middleware\HandleSharpErrors::class,

0 commit comments

Comments
 (0)