Permalink
Browse files

Merge pull request #670 from motchju/master

Change due to version 1.3 of laravel-localization
  • Loading branch information...
nWidart committed Feb 10, 2019
2 parents 1c4f412 + e94ebc3 commit b0acbeb5937359763b5f44669e8e1b3cd4de55b3
@@ -0,0 +1,9 @@
<?php
namespace Modules\Core\Http\Middleware;
use Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect;
class LocaleSessionRedirectMiddleware extends LocaleSessionRedirect
{
}
@@ -43,6 +43,7 @@ class CoreServiceProvider extends ServiceProvider
'auth.admin' => 'AdminMiddleware',
'public.checkLocale' => 'PublicMiddleware',
'localizationRedirect' => 'LocalizationMiddleware',
'localeSessionRedirect' => 'LocaleSessionRedirectMiddleware',
'can' => 'Authorization',
],
];
@@ -55,7 +55,7 @@ public function map(Router $router)
$router->group([
'namespace' => $this->namespace,
'prefix' => LaravelLocalization::setLocale(),
'middleware' => ['localizationRedirect', 'web'],
'middleware' => ['localeSessionRedirect', 'localizationRedirect', 'web'],
], function (Router $router) {
$this->loadBackendRoutes($router);
$this->loadFrontendRoutes($router);

0 comments on commit b0acbeb

Please sign in to comment.