File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
119119If 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
127127return [
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,
You can’t perform that action at this time.
0 commit comments