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));
    }
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));
    }
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 ) ) ; }
Returns whether the column is a direct attribute of model.

@param Model  $model
@param string $column
@return bool
Returns whether the column is a direct attribute of model .