src/Repositories/TranslationRepository.php
public function loadSource($locale, $namespace, $group)
    {
        return $this->model
            ->whereLocale($locale)
            ->whereNamespace($namespace)
            ->whereGroup($group)
            ->get()
            ->keyBy('item')
            ->map(function ($translation) {
                return $translation['text'];
            })
            ->toArray();
    }
public function loadSource($locale, $namespace, $group)
    {
        return $this->model
            ->whereLocale($locale)
            ->whereNamespace($namespace)
            ->whereGroup($group)
            ->get()
            ->keyBy('item')
            ->map(function ($translation) {
                return $translation['text'];
            })
            ->toArray();
    }
public function loadSource ( $ locale , $ namespace , $ group ) { return $ this -> model -> whereLocale ( $ locale ) -> whereNamespace ( $ namespace ) -> whereGroup ( $ group ) -> get ( ) -> keyBy ( 'item' ) -> map ( function ( $ translation ) { return $ translation [ 'text' ] ; } ) -> toArray ( ) ; }
Return all items formatted as if coming from a PHP language file.

@param  string $locale
@param  string $namespace
@param  string $group
@return array
Return all items formatted as if coming from a PHP language file .