Skip to content

Commit

Permalink
Merge pull request #80 from bezhanSalleh/fix/#79
Browse files Browse the repository at this point in the history
fix middleware return type
  • Loading branch information
bezhanSalleh authored Jan 25, 2024
2 parents a6f7115 + 19d93ea commit d18394f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/SwitchLanguageLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class SwitchLanguageLocale
{
public function handle(Request $request, Closure $next): \Illuminate\Http\Response | \Illuminate\Http\RedirectResponse
public function handle(Request $request, Closure $next): mixed
{
$locale = session()->get('locale')
?? $request->get('locale')
Expand Down

0 comments on commit d18394f

Please sign in to comment.