Support the ongoing development of Laravel.io →
Laravel Vue.js Breeze
Last updated by @atif-bashir-1998 2 years ago.
0

The issue was with order in which the middlewares were being applied. I added $middlewarePriority to app/Http/Kernel.php and ordered the middlewares in a way that the SetLocale runs first and then HandleInertiaRequests. See the code snippet below:

protected $middlewarePriority = [
      \App\Http\Middleware\SetLocale::class,
      \App\Http\Middleware\HandleInertiaRequests::class
    ];

veggigit liked this reply

1
Solution selected by @atif-bashir-1998

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.