protected function processSomeAttachments(Collection $models, array $attachments)
    {
        $progress = $this->getProgressBar($models);
        $progress->start();

        foreach ($models as $model) {
            $progress->advance();

            foreach ($model->getAttachedFiles() as $attachedFile) {
                if (in_array($attachedFile->name, $attachments)) {
                    $attachedFile->reprocess();
                }
            }
        }

        $progress->finish();
    }
protected function processSomeAttachments(Collection $models, array $attachments)
    {
        $progress = $this->getProgressBar($models);
        $progress->start();

        foreach ($models as $model) {
            $progress->advance();

            foreach ($model->getAttachedFiles() as $attachedFile) {
                if (in_array($attachedFile->name, $attachments)) {
                    $attachedFile->reprocess();
                }
            }
        }

        $progress->finish();
    }
protected function processSomeAttachments ( Collection $ models , array $ attachments ) { $ progress = $ this -> getProgressBar ( $ models ) ; $ progress -> start ( ) ; foreach ( $ models as $ model ) { $ progress -> advance ( ) ; foreach ( $ model -> getAttachedFiles ( ) as $ attachedFile ) { if ( in_array ( $ attachedFile -> name , $ attachments ) ) { $ attachedFile -> reprocess ( ) ; } } } $ progress -> finish ( ) ; }
Process a only a specified subset of stapler attachments.

@param Collection $models
@param array      $attachments
Process a only a specified subset of stapler attachments .