original_string: public function fill(array $input, bool $force = false)
      {
          foreach ($input as $key => $value) {
              if ($force) {
                  $this->setAttribute($key, $value);
  
                  continue;
              }
  
              if ((empty($this->fillable) || in_array($key, $this->fillable)) && !in_array($key, $this->guarded)) {
                  $this->setAttribute($key, $value);
              }
          }
      }
code: public function fill(array $input, bool $force = false)
      {
          foreach ($input as $key => $value) {
              if ($force) {
                  $this->setAttribute($key, $value);
  
                  continue;
              }
  
              if ((empty($this->fillable) || in_array($key, $this->fillable)) && !in_array($key, $this->guarded)) {
                  $this->setAttribute($key, $value);
              }
          }
      }
code_tokens: public function fill ( array $ input , bool $ force = false ) { foreach ( $ input as $ key => $ value ) { if ( $ force ) { $ this -> setAttribute ( $ key , $ value ) ; continue ; } if ( ( empty ( $ this -> fillable ) || in_array ( $ key , $ this -> fillable ) ) && ! in_array ( $ key , $ this -> guarded ) ) { $ this -> setAttribute ( $ key , $ value ) ; } } }
docstring: Set the model attributes using an array.
  
  @param array $input the data that will be used to fill the attributes
  @param bool  $force force fill
docstring_tokens: Set the model attributes using an array .