src/Repositories/TranslationRepository.php
protected function untranslatedQuery($locale)
    {
        $table = $this->model->getTable();

        return $this->database->table("$table as $table")
            ->select("$table.id")
            ->leftJoin("$table as e", function (JoinClause $query) use ($table, $locale) {
                $query->on('e.namespace', '=', "$table.namespace")
                    ->on('e.group', '=', "$table.group")
                    ->on('e.item', '=', "$table.item")
                    ->where('e.locale', '=', $locale);
            })
            ->where("$table.locale", $this->defaultLocale)
            ->whereNull("e.id");
    }
protected function untranslatedQuery($locale)
    {
        $table = $this->model->getTable();

        return $this->database->table("$table as $table")
            ->select("$table.id")
            ->leftJoin("$table as e", function (JoinClause $query) use ($table, $locale) {
                $query->on('e.namespace', '=', "$table.namespace")
                    ->on('e.group', '=', "$table.group")
                    ->on('e.item', '=', "$table.item")
                    ->where('e.locale', '=', $locale);
            })
            ->where("$table.locale", $this->defaultLocale)
            ->whereNull("e.id");
    }
protected function untranslatedQuery ( $ locale ) { $ table = $ this -> model -> getTable ( ) ; return $ this -> database -> table ( "$table as $table" ) -> select ( "$table.id" ) -> leftJoin ( "$table as e" , function ( JoinClause $ query ) use ( $ table , $ locale ) { $ query -> on ( 'e.namespace' , '=' , "$table.namespace" ) -> on ( 'e.group' , '=' , "$table.group" ) -> on ( 'e.item' , '=' , "$table.item" ) -> where ( 'e.locale' , '=' , $ locale ) ; } ) -> where ( "$table.locale" , $ this -> defaultLocale ) -> whereNull ( "e.id" ) ; }
Create and return a new query to identify untranslated records.

@param string $locale
@return \Illuminate\Database\Query\Builder
Create and return a new query to identify untranslated records .