public function getQualifiedAutoIncrementColumn(Blueprint $blueprint)
    {
        $columns = $blueprint->getColumns();

        // search for primary key / autoIncrement column
        foreach ($columns as $column) {
            // if column is autoIncrement set the primary col name
            if ($column->autoIncrement) {
                return $column;
            }
        }
    }
public function getQualifiedAutoIncrementColumn(Blueprint $blueprint)
    {
        $columns = $blueprint->getColumns();

        // search for primary key / autoIncrement column
        foreach ($columns as $column) {
            // if column is autoIncrement set the primary col name
            if ($column->autoIncrement) {
                return $column;
            }
        }
    }
public function getQualifiedAutoIncrementColumn ( Blueprint $ blueprint ) { $ columns = $ blueprint -> getColumns ( ) ; // search for primary key / autoIncrement column foreach ( $ columns as $ column ) { // if column is autoIncrement set the primary col name if ( $ column -> autoIncrement ) { return $ column ; } } }
Get qualified autoincrement column.

@param  Blueprint $blueprint
@return \Illuminate\Support\Fluent|null
Get qualified autoincrement column .