src/Traits/Module/ValidatesForm.php
protected function makeForeignRule(Column $column, $eloquent)
    {
        $foreign = $this->isForeignKey($column, $eloquent);
        $foreignTable = $foreign->getForeignTableName();
        $foreignKey = head($foreign->getForeignColumns());

        return "exists:{$foreignTable},{$foreignKey}";
    }
protected function makeForeignRule(Column $column, $eloquent)
    {
        $foreign = $this->isForeignKey($column, $eloquent);
        $foreignTable = $foreign->getForeignTableName();
        $foreignKey = head($foreign->getForeignColumns());

        return "exists:{$foreignTable},{$foreignKey}";
    }
protected function makeForeignRule ( Column $ column , $ eloquent ) { $ foreign = $ this -> isForeignKey ( $ column , $ eloquent ) ; $ foreignTable = $ foreign -> getForeignTableName ( ) ; $ foreignKey = head ( $ foreign -> getForeignColumns ( ) ) ; return "exists:{$foreignTable},{$foreignKey}" ; }
Parse foreign keys for column presence.

@param Column $column
@param        $eloquent

@return array
Parse foreign keys for column presence .