protected function processAllAttachments(Collection $models)
    {
        $progress = $this->getProgressBar($models);
        $progress->start();

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

            foreach ($model->getAttachedFiles() as $attachedFile) {
                $attachedFile->reprocess();
            }
        }

        $progress->finish();
    }
protected function processAllAttachments(Collection $models)
    {
        $progress = $this->getProgressBar($models);
        $progress->start();

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

            foreach ($model->getAttachedFiles() as $attachedFile) {
                $attachedFile->reprocess();
            }
        }

        $progress->finish();
    }
protected function processAllAttachments ( Collection $ models ) { $ progress = $ this -> getProgressBar ( $ models ) ; $ progress -> start ( ) ; foreach ( $ models as $ model ) { $ progress -> advance ( ) ; foreach ( $ model -> getAttachedFiles ( ) as $ attachedFile ) { $ attachedFile -> reprocess ( ) ; } } $ progress -> finish ( ) ; }
Process all stapler attachments defined on a class.

@param Collection $models
Process all stapler attachments defined on a class .