original_string: protected function store($results)
      {
          $results->each(function ($model) {
              if (! isset($this->connection)) {
                  $model->setConnection($model->newQueryWithoutScopes()->getConnection()->getName());
              }
  
              $model->save();
          });
      }
code: protected function store($results)
      {
          $results->each(function ($model) {
              if (! isset($this->connection)) {
                  $model->setConnection($model->newQueryWithoutScopes()->getConnection()->getName());
              }
  
              $model->save();
          });
      }
code_tokens: protected function store ( $ results ) { $ results -> each ( function ( $ model ) { if ( ! isset ( $ this -> connection ) ) { $ model -> setConnection ( $ model -> newQueryWithoutScopes ( ) -> getConnection ( ) -> getName ( ) ) ; } $ model -> save ( ) ; } ) ; }
docstring: Set the connection name on the results and store them.
  
  @param  \Illuminate\Support\Collection  $results
  @return void
docstring_tokens: Set the connection name on the results and store them .