public function getConfigFiles($configs = [])
    {
        $finder = $this->make(Finder::class)
            ->files()
            ->in($this->configPath())
            ->name('*.php');

        foreach ($finder as $file) {
            $configs[basename($file->getFilename(), '.php')] = require $file->getRealPath();
        }

        return $configs;
    }
public function getConfigFiles($configs = [])
    {
        $finder = $this->make(Finder::class)
            ->files()
            ->in($this->configPath())
            ->name('*.php');

        foreach ($finder as $file) {
            $configs[basename($file->getFilename(), '.php')] = require $file->getRealPath();
        }

        return $configs;
    }
public function getConfigFiles ( $ configs = [ ] ) { $ finder = $ this -> make ( Finder :: class ) -> files ( ) -> in ( $ this -> configPath ( ) ) -> name ( '*.php' ) ; foreach ( $ finder as $ file ) { $ configs [ basename ( $ file -> getFilename ( ) , '.php' ) ] = require $ file -> getRealPath ( ) ; } return $ configs ; }
Gets all config files.

@return array
Gets all config files .