laravel 6 alter table alter column to be unique code example
Example: laravel set field unique
Schema::table('manufacturers', function($table)
{
$table->string('name')->unique();
});
Schema::table('manufacturers', function($table)
{
$table->string('name')->unique();
});