src/Support/Migrations/SchemaParser.php
protected function addRelationColumn($key, $field, $column)
    {
        $relatedColumn = Str::snake(class_basename($field)) . '_id';

        $method = 'integer';

        return "->{$method}('{$relatedColumn}')";
    }
protected function addRelationColumn($key, $field, $column)
    {
        $relatedColumn = Str::snake(class_basename($field)) . '_id';

        $method = 'integer';

        return "->{$method}('{$relatedColumn}')";
    }
protected function addRelationColumn ( $ key , $ field , $ column ) { $ relatedColumn = Str :: snake ( class_basename ( $ field ) ) . '_id' ; $ method = 'integer' ; return "->{$method}('{$relatedColumn}')" ; }
Add relation column.

@param int    $key
@param string $field
@param string $column

@return string
Add relation column .