The mediumIncrements method creates an auto-incrementing UNSIGNED MEDIUMINT equivalent column as a primary key:
mediumIncrements
UNSIGNED MEDIUMINT
$table->mediumIncrements('id');