public function storeMany($directory, array $files)
    {
        $uploaded = [];

        foreach ($files as $file) {
            /** @var \Illuminate\Http\UploadedFile $file */
            $uploaded[$directory.'/'.$file->getClientOriginalName()] = $this->store($directory, $file);
        }

        return $uploaded;
    }
public function storeMany($directory, array $files)
    {
        $uploaded = [];

        foreach ($files as $file) {
            /** @var \Illuminate\Http\UploadedFile $file */
            $uploaded[$directory.'/'.$file->getClientOriginalName()] = $this->store($directory, $file);
        }

        return $uploaded;
    }
public function storeMany ( $ directory , array $ files ) { $ uploaded = [ ] ; foreach ( $ files as $ file ) { /** @var \Illuminate\Http\UploadedFile $file */ $ uploaded [ $ directory . '/' . $ file -> getClientOriginalName ( ) ] = $ this -> store ( $ directory , $ file ) ; } return $ uploaded ; }
Store an array of files.

@param  string  $directory
@param  array   $files

@return array
Store an array of files .