src/Manager.php
public function languages()
    {
        $languages = array_map(function ($directory) {
            return basename($directory);
        }, $this->disk->directories($this->path));

        $languages = array_filter($languages, function ($directory) {
            return $directory != 'vendor' && $directory != 'json';
        });

        sort($languages);

        return Arr::except($languages, ['vendor', 'json']);
    }
public function languages()
    {
        $languages = array_map(function ($directory) {
            return basename($directory);
        }, $this->disk->directories($this->path));

        $languages = array_filter($languages, function ($directory) {
            return $directory != 'vendor' && $directory != 'json';
        });

        sort($languages);

        return Arr::except($languages, ['vendor', 'json']);
    }
public function languages ( ) { $ languages = array_map ( function ( $ directory ) { return basename ( $ directory ) ; } , $ this -> disk -> directories ( $ this -> path ) ) ; $ languages = array_filter ( $ languages , function ( $ directory ) { return $ directory != 'vendor' && $ directory != 'json' ; } ) ; sort ( $ languages ) ; return Arr :: except ( $ languages , [ 'vendor' , 'json' ] ) ; }
Array of supported languages.

ex: ['en', 'sp']

@return array
Array of supported languages .