public function loadFromDirectory($path)
    {
        return $this->file->listFiles($path)->mapWithKeys(function ($file, $key) {
            return [$key => $this->loadFile($file)];
        });
    }
public function loadFromDirectory($path)
    {
        return $this->file->listFiles($path)->mapWithKeys(function ($file, $key) {
            return [$key => $this->loadFile($file)];
        });
    }
public function loadFromDirectory ( $ path ) { return $ this -> file -> listFiles ( $ path ) -> mapWithKeys ( function ( $ file , $ key ) { return [ $ key => $ this -> loadFile ( $ file ) ] ; } ) ; }
Load all yaml files from a directory.

@param $path

@return \Illuminate\Support\Collection
Load all yaml files from a directory .