laravel unique custom field code example
Example 1: laravel set field unique
Schema::table('manufacturers', function($table)
{
$table->string('name')->unique();
});
Example 2: validate field for existing client laravel
unique:users,username,id,1 // table, field, idcolumn, value to ignore