add locale middleware

This commit is contained in:
decoder
2024-03-13 10:31:30 +05:00
parent fd9dc5d545
commit c5295f0fee
3 changed files with 43 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ Route::middleware(['IsInstalled'])->group(function () {
Route::post('registration', [RegistrationController::class, 'store']);
});
Route::middleware(['IsInstalled', 'auth', 'bootstrap', 'setDefaultConfig'])->group(function () {
Route::middleware(['locale', 'IsInstalled', 'auth', 'bootstrap', 'setDefaultConfig'])->group(function () {
Route::get('/home', [HomeController::class, 'index'])->name('home');
Route::get('/home-template', [HomeController::class, 'getTemplate']);
Route::get('/home-assigned-forms', [HomeController::class, 'getAssignedForms']);