lang
This commit is contained in:
1 parent
643ccd6d9e
commit
e927a912e1
8 files changed
+243
-1
No files matched your search
@@ -11,6 +11,7 @@
|
||||
use App\Http\Controllers\OurSolutionPageController;
|
||||
use App\Http\Controllers\Web\SuccessPageController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
|
||||
// Homepage...
|
||||
Route::get('/', [HomePageController::class, 'index'])->name('home');
|
||||
@@ -48,3 +49,9 @@
|
||||
// Legal pages...
|
||||
Route::get('terms-and-conditions', [LegalPageController::class, 'terms'])->name('terms');
|
||||
Route::get('privacy-and-policy', [LegalPageController::class, 'privacy'])->name('privacy');
|
||||
|
||||
// Language Switcher
|
||||
Route::get('locale/{locale}', function ($locale) {
|
||||
Session::put('locale', $locale);
|
||||
return redirect()->back();
|
||||
})->name('locale.switch');
|
||||
Reference in new issue
Block a user