protected function applyTranslationFilter()
    {
        if (!array_key_exists($lang = request()->get('lang'), $this->languages())) {
            return;
        }

        return $this->query->whereLanguage($lang);
    }
protected function applyTranslationFilter()
    {
        if (!array_key_exists($lang = request()->get('lang'), $this->languages())) {
            return;
        }

        return $this->query->whereLanguage($lang);
    }
protected function applyTranslationFilter ( ) { if ( ! array_key_exists ( $ lang = request ( ) -> get ( 'lang' ) , $ this -> languages ( ) ) ) { return ; } return $ this -> query -> whereLanguage ( $ lang ) ; }
Applies the Translation Filter to the current query.

@return void
Applies the Translation Filter to the current query .