Localization
in package
Table of Contents
Methods
- handle() : mixed
- Handle an incoming request.
- getClientLocale() : mixed
- getUserLocale() : string|null
Methods
handle()
Handle an incoming request.
public
handle(Request $request, Closure $next) : mixed
Parameters
- $request : Request
- $next : Closure
getClientLocale()
protected
getClientLocale(string|null $accepts, array<string|int, mixed> $availableLocales) : mixed
Parameters
- $accepts : string|null
- $availableLocales : array<string|int, mixed>
getUserLocale()
protected
getUserLocale() : string|null