protected function getFiles($path)
    {
        $path = Str::finish($path, '/');

        if (file_exists($path . App::getLocale())) {
            return File::files($path . App::getLocale());
        } elseif (file_exists($path . config('app.fallback_locale'))) {
            return File::files($path . config('app.fallback_locale'));
        }

        return [];
    }
protected function getFiles($path)
    {
        $path = Str::finish($path, '/');

        if (file_exists($path . App::getLocale())) {
            return File::files($path . App::getLocale());
        } elseif (file_exists($path . config('app.fallback_locale'))) {
            return File::files($path . config('app.fallback_locale'));
        }

        return [];
    }
protected function getFiles ( $ path ) { $ path = Str :: finish ( $ path , '/' ) ; if ( file_exists ( $ path . App :: getLocale ( ) ) ) { return File :: files ( $ path . App :: getLocale ( ) ) ; } elseif ( file_exists ( $ path . config ( 'app.fallback_locale' ) ) ) { return File :: files ( $ path . config ( 'app.fallback_locale' ) ) ; } return [ ] ; }
Get the files for the given locale.

@param  string  $path
@return array
Get the files for the given locale .