src/Terranet/Localizer/Resolvers/DomainResolver.php
public function resolve()
    {
        $httpHost = $this->request->getHttpHost();
        $domains = explode('.', $httpHost);
        $level = config('localizer.domain.level', 3);

        return ($total = count($domains)) >= $level ? $domains[$total - $level] : null;
    }
public function resolve()
    {
        $httpHost = $this->request->getHttpHost();
        $domains = explode('.', $httpHost);
        $level = config('localizer.domain.level', 3);

        return ($total = count($domains)) >= $level ? $domains[$total - $level] : null;
    }
public function resolve ( ) { $ httpHost = $ this -> request -> getHttpHost ( ) ; $ domains = explode ( '.' , $ httpHost ) ; $ level = config ( 'localizer.domain.level' , 3 ) ; return ( $ total = count ( $ domains ) ) >= $ level ? $ domains [ $ total - $ level ] : null ; }
Resolve locale using domain name

@return mixed
Resolve locale using domain name