Skip to content

Commit a8c5e08

Browse files
author
Marc Cámara
committed
added session array
1 parent a24fa7c commit a8c5e08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"keywords": ["localization", "laravel", "php"],
55
"homepage": "https://github.com/mcamara/laravel-localization",
66
"license": "MIT",
7-
"version": "1.0.5",
7+
"version": "1.0.6",
88
"authors": [
99
{
1010
"name": "Marc Cámara",

src/Mcamara/LaravelLocalization/LaravelLocalization.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ protected function storeSession( $locale )
538538
{
539539
if ( $this->useSessionLocale() )
540540
{
541-
session($this->cookieSessionName, $locale);
541+
session([ $this->cookieSessionName => $locale ]);
542542
}
543543
}
544544

0 commit comments

Comments
 (0)