original_string: public function makeAllSearchable()
      {
          $this->chunk(100, function (Collection $models) {
              $models = $models->map(function (Searchable $model) {
                  $model->setSearchableAs($this->searchableAs());
                  $model->setClassMetaData($this->getClassMetadata());
  
                  return $model;
              });
  
              $this->searchableUsing()->update($models);
  
              event(new ModelsImported($models));
          });
      }
code: public function makeAllSearchable()
      {
          $this->chunk(100, function (Collection $models) {
              $models = $models->map(function (Searchable $model) {
                  $model->setSearchableAs($this->searchableAs());
                  $model->setClassMetaData($this->getClassMetadata());
  
                  return $model;
              });
  
              $this->searchableUsing()->update($models);
  
              event(new ModelsImported($models));
          });
      }
code_tokens: public function makeAllSearchable ( ) { $ this -> chunk ( 100 , function ( Collection $ models ) { $ models = $ models -> map ( function ( Searchable $ model ) { $ model -> setSearchableAs ( $ this -> searchableAs ( ) ) ; $ model -> setClassMetaData ( $ this -> getClassMetadata ( ) ) ; return $ model ; } ) ; $ this -> searchableUsing ( ) -> update ( $ models ) ; event ( new ModelsImported ( $ models ) ) ; } ) ; }
docstring: Make all searchable
docstring_tokens: Make all searchable