Skip to content

Commit

Permalink
Merge pull request #14 from vibrantBits/master
Browse files Browse the repository at this point in the history
Update SetLocale.php
  • Loading branch information
denisdulici authored Mar 7, 2019
2 parents 139421a + bc3f571 commit 9c86923
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Middleware/SetLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public function handle($request, Closure $next)
$this->setSystemLocale($request);
}

//check lang as a passed parameter in URI
if($request->has('lang')){
$this->setLocale($request->lang);
}

return $next($request);
}
}

0 comments on commit 9c86923

Please sign in to comment.