protected function addPrimaryKeys(Blueprint $blueprint)
    {
        $primary = $this->getCommandByName($blueprint, 'primary');

        if (! is_null($primary)) {
            $columns = $this->columnize($primary->columns);

            return ", primary key ({$columns})";
        }
    }
protected function addPrimaryKeys(Blueprint $blueprint)
    {
        $primary = $this->getCommandByName($blueprint, 'primary');

        if (! is_null($primary)) {
            $columns = $this->columnize($primary->columns);

            return ", primary key ({$columns})";
        }
    }
protected function addPrimaryKeys ( Blueprint $ blueprint ) { $ primary = $ this -> getCommandByName ( $ blueprint , 'primary' ) ; if ( ! is_null ( $ primary ) ) { $ columns = $ this -> columnize ( $ primary -> columns ) ; return ", primary key ({$columns})" ; } }
Get the primary key syntax for a table creation statement.

@param  \Nova\Database\Schema\Blueprint  $blueprint
@return string|null
Get the primary key syntax for a table creation statement .