src/Fk.php
public function baseFk($fk)
    {
        if ($fkConfig = FkConfig::get($fk)) {
            return new BaseFk($this->table, $fk, $fkConfig['datatype'], $fkConfig['referenceTable']);
        }

        $class = Config::get('fk_adder.fk_namespace').'\\'.studly_case($fk);

        return new $class($this->table);
    }
public function baseFk($fk)
    {
        if ($fkConfig = FkConfig::get($fk)) {
            return new BaseFk($this->table, $fk, $fkConfig['datatype'], $fkConfig['referenceTable']);
        }

        $class = Config::get('fk_adder.fk_namespace').'\\'.studly_case($fk);

        return new $class($this->table);
    }
public function baseFk ( $ fk ) { if ( $ fkConfig = FkConfig :: get ( $ fk ) ) { return new BaseFk ( $ this -> table , $ fk , $ fkConfig [ 'datatype' ] , $ fkConfig [ 'referenceTable' ] ) ; } $ class = Config :: get ( 'fk_adder.fk_namespace' ) . '\\' . studly_case ( $ fk ) ; return new $ class ( $ this -> table ) ; }
Return the baseFk for foreign key column creation.

@param  string $fk
@return \FkAdder\BaseFk
Return the baseFk for foreign key column creation .