public static function getLanguage()
    {
        if (! self::$language) {
            self::$language = Language::findByCode(App::getLocale());
        }

        if (! self::$language) {
            abort(404, 'Language could not be found');
        }

        return self::$language;
    }
public static function getLanguage()
    {
        if (! self::$language) {
            self::$language = Language::findByCode(App::getLocale());
        }

        if (! self::$language) {
            abort(404, 'Language could not be found');
        }

        return self::$language;
    }
public static function getLanguage ( ) { if ( ! self :: $ language ) { self :: $ language = Language :: findByCode ( App :: getLocale ( ) ) ; } if ( ! self :: $ language ) { abort ( 404 , 'Language could not be found' ) ; } return self :: $ language ; }
Get application Language instance
@return Language
Get application Language instance