additionOfMultiLang

This commit is contained in:
UronShrestha
2024-06-18 15:28:01 +05:45
parent 949fee1678
commit 28921cc745
23 changed files with 284 additions and 116 deletions

View File

@ -2,6 +2,8 @@
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\MailController;
use App\Http\Controllers\LangController;
use App\Http\Controllers\backend\UserController;
use Illuminate\Support\Facades\Route;
@ -67,11 +69,4 @@ Route::post('/send-email', [App\Http\Controllers\backend\UserController::class,
// Route for setting the locale
Route::get('/lang/{locale}', function ($locale) {
Session::put('locale', $locale);
return redirect()->back();
})->name('setLocale');
Route::get('set-locale/{locale}', [App\Http\Controllers\LocaleController::class, 'setLocale'])->name('setLocale');
Route::get('/lang/change', [App\Http\Controllers\LangController::class, 'change'])->name('changelang');