BenConstable\Localize\Determiners\Host::determineLocale PHP Method

determineLocale() public method

Determine the locale from the current host.
public determineLocale ( Illuminate\Http\Request $request ) : string
$request Illuminate\Http\Request
return string
    public function determineLocale(Request $request)
    {
        return $this->hostMapping->flip()->get($request->getHost(), $this->fallback);
    }