[
'name' => NoRecordExists::class,
'options' => [
'table' => 'customer',
'field' => 'customername',
'exclude' => [
'field' => 'id',
'value' => 1, //when adding new record, this value is not need or can set to 0, however when modifying the exist record, this value need to set to the existing one's primary key, how to pass the primary key here???
],
'message' => 'customername is duplicated',
],
],