validasi laravel unik jika bidang ini diubah

use Illuminate\Validation\Rule;

$request->validate([
    'phone' => [
        'required',
        Rule::unique('table_name', 'column_name')->ignore($request->id),
    ],
]);
hirohito