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:
Ümit Tunç
2025-11-04 15:40:53 -03:00
parent 8a99a36ee9
commit f1b1f6e266
3 changed files with 57 additions and 5 deletions
+3 -1
View File
@@ -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 {
//