Add locale management middleware: Introduced SetLocale middleware to handle language settings based on user session and available languages. Updated app bootstrap to include the middleware, ensuring proper localization support throughout the application. Enhanced language selector component for improved user experience.
This commit is contained in:
+3
-1
@@ -11,7 +11,9 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware): void {
|
||||
//
|
||||
$middleware->web(append: [
|
||||
\App\Http\Middleware\SetLocale::class,
|
||||
]);
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions): void {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user