src/Gzero/Core/Services/LanguageService.php
public function getByCode($code)
    {
        return $this->languages->filter(
            function ($language) use ($code) {
                return $language->code == $code;
            }
        )->first();
    }
public function getByCode($code)
    {
        return $this->languages->filter(
            function ($language) use ($code) {
                return $language->code == $code;
            }
        )->first();
    }
public function getByCode ( $ code ) { return $ this -> languages -> filter ( function ( $ language ) use ( $ code ) { return $ language -> code == $ code ; } ) -> first ( ) ; }
Get lang by lang code

@param string $code Lang code eg. "en"

@return \Gzero\Core\Models\Language
Get lang by lang code