Migrasi Laravel Tambahkan kolom unik

Schema::table('tableName', function($table)
{
    $table->string('column-name')->unique(); //notice the parenthesis I added
});
Sore Seal