protected function loadPath($path, $locale, $group)
    {
        return collect(['_lang.php', '.php'])
            ->reduce(function ($output, $ext) use ($path, $locale, $group) {
                if ($this->files->exists($full = "{$path}/{$locale}/{$group}{$ext}")) {
                    $output = array_merge($output, $this->files->getRequire($full));
                }

                return $output;
            }, []);
    }
protected function loadPath($path, $locale, $group)
    {
        return collect(['_lang.php', '.php'])
            ->reduce(function ($output, $ext) use ($path, $locale, $group) {
                if ($this->files->exists($full = "{$path}/{$locale}/{$group}{$ext}")) {
                    $output = array_merge($output, $this->files->getRequire($full));
                }

                return $output;
            }, []);
    }
protected function loadPath ( $ path , $ locale , $ group ) { return collect ( [ '_lang.php' , '.php' ] ) -> reduce ( function ( $ output , $ ext ) use ( $ path , $ locale , $ group ) { if ( $ this -> files -> exists ( $ full = "{$path}/{$locale}/{$group}{$ext}" ) ) { $ output = array_merge ( $ output , $ this -> files -> getRequire ( $ full ) ) ; } return $ output ; } , [ ] ) ; }
Load a locale from a given path.

@param  string $path
@param  string $locale
@param  string $group

@return array
Load a locale from a given path .