original_string: protected function isColumnOnModelTable(Model $model, $column)
      {
          $info = $this->getModelInformation($model);
  
          if ($info) {
              return (    array_key_exists($column, $info->attributes)
                      &&  ! $info->attributes[$column]->translated
                      );
          }
  
          // Determine based on model itself
          return ($model->getKeyName() == $column || $model->isFillable($column) || $model->isGuarded($column));
      }
code: protected function isColumnOnModelTable(Model $model, $column)
      {
          $info = $this->getModelInformation($model);
  
          if ($info) {
              return (    array_key_exists($column, $info->attributes)
                      &&  ! $info->attributes[$column]->translated
                      );
          }
  
          // Determine based on model itself
          return ($model->getKeyName() == $column || $model->isFillable($column) || $model->isGuarded($column));
      }
code_tokens: protected function isColumnOnModelTable ( Model $ model , $ column ) { $ info = $ this -> getModelInformation ( $ model ) ; if ( $ info ) { return ( array_key_exists ( $ column , $ info -> attributes ) && ! $ info -> attributes [ $ column ] -> translated ) ; } // Determine based on model itself return ( $ model -> getKeyName ( ) == $ column || $ model -> isFillable ( $ column ) || $ model -> isGuarded ( $ column ) ) ; }
docstring: Returns whether the column is a direct attribute of model.
  
  @param Model  $model
  @param string $column
  @return bool
docstring_tokens: Returns whether the column is a direct attribute of model .