Skip to content

Commit

Permalink
Merge branch 'hotfix/3.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mabasic committed Feb 18, 2020
2 parents ee37990 + 757bf20 commit a45e928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
],
"require": {
"php": ">=7.2",
"illuminate/support": "^5.0|^6.0",
"illuminate/http": "^5.0|^6.0",
"illuminate/routing": "^5.0|^6.0"
"illuminate/support": "^5.7|^6.0",
"illuminate/http": "^5.7|^6.0",
"illuminate/routing": "^5.7|^6.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function handle(Request $request, Closure $next)

// Hide default locale /en to /
if (config('loki.hideDefaultLocale') == true and $prefix == config('loki.defaultLocale')) {
return redirect()->route(Str::replace_first($prefix . '.', '', $route->getName()), $route->parameters);
return redirect()->route(Str::replaceFirst($prefix . '.', '', $route->getName()), $route->parameters);
}

// Redirect / to default locale /en
Expand Down

0 comments on commit a45e928

Please sign in to comment.