public function moveFilesWildcard($from, $to)
    {
        coollect(glob($this->dataDir($from)))->each(function ($from) use ($to) {
            $this->mkDir($dir = $this->dataDir($to));

            rename($from, $dir.'/'.basename($from));
        });
    }
public function moveFilesWildcard($from, $to)
    {
        coollect(glob($this->dataDir($from)))->each(function ($from) use ($to) {
            $this->mkDir($dir = $this->dataDir($to));

            rename($from, $dir.'/'.basename($from));
        });
    }
public function moveFilesWildcard ( $ from , $ to ) { coollect ( glob ( $ this -> dataDir ( $ from ) ) ) -> each ( function ( $ from ) use ( $ to ) { $ this -> mkDir ( $ dir = $ this -> dataDir ( $ to ) ) ; rename ( $ from , $ dir . '/' . basename ( $ from ) ) ; } ) ; }
Move files using wildcard filter.

@param $from
@param $to
Move files using wildcard filter .