Skip to content

Commit 1181a27

Browse files
authored
Merge pull request #16 from Laravel-Backpack/allow-not-admin-scope
Allow language switcher to work outside of the admin panel
2 parents b05fad1 + e262ec7 commit 1181a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/language-switcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
Route::group([
1515
'namespace' => 'Backpack\LanguageSwitcher\Http\Controllers',
16-
'middleware' => ['web', config('backpack.base.middleware_key', 'admin'), 'throttle:60,1'],
16+
'middleware' => ['web', 'throttle:60,1'],
1717
], function () {
1818
// set locale
1919
Route::any('set-locale/{locale}', [LanguageSwitcherController::class, 'setLocale'])

0 commit comments

Comments
 (0)