laravel alter table migration add contraint 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();
});