Skip to content

Commit

Permalink
Merge pull request #14 from bitbeans/1.0
Browse files Browse the repository at this point in the history
Fix custom cookie name
  • Loading branch information
vluzrmos committed Jan 8, 2016
2 parents 4defd0a + 7c535f6 commit efe9db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/LanguageDetectorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function registerEncryptCookies()
{
$this->app->resolving('Illuminate\Cookie\Middleware\EncryptCookies', function ($middleware) {
if ($this->config('cookie', true) && ! $this->config('cookie_encrypt', false)) {
$middleware->disableFor($this->config('lang-detector.cookie_name', 'locale'));
$middleware->disableFor($this->config('cookie_name', 'locale'));
}
});
}
Expand Down

0 comments on commit efe9db0

Please sign in to comment.