src/Traits/Module/ValidatesForm.php
protected function isForeignKey($column, $eloquent)
    {
        foreach ($foreign = scheme()->foreignKeys($eloquent->getTable()) as $foreign) {
            if (in_array($column->getName(), $foreign->getLocalColumns(), true)) {
                return $foreign;
            }
        }

        return false;
    }
protected function isForeignKey($column, $eloquent)
    {
        foreach ($foreign = scheme()->foreignKeys($eloquent->getTable()) as $foreign) {
            if (in_array($column->getName(), $foreign->getLocalColumns(), true)) {
                return $foreign;
            }
        }

        return false;
    }
protected function isForeignKey ( $ column , $ eloquent ) { foreach ( $ foreign = scheme ( ) -> foreignKeys ( $ eloquent -> getTable ( ) ) as $ foreign ) { if ( in_array ( $ column -> getName ( ) , $ foreign -> getLocalColumns ( ) , true ) ) { return $ foreign ; } } return false ; }
Check if column is a part of foreign keys.

@param $column
@param $eloquent

@return bool
Check if column is a part of foreign keys .