Skip to content

Commit f440339

Browse files
Remove onlyOnForms restriction from NIK field in Mitra resource
1 parent 69fdcc9 commit f440339

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Nova/Mitra.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public function fields(NovaRequest $request)
6262
Text::make('NIK', 'nik')
6363
->updateRules('required', 'min:16', 'max:16', Rule::unique('mitras', 'nik')->where('kepka_mitra_id', $request->viaResourceId)->ignore($this->id))
6464
->hideWhenUpdating()
65-
->onlyOnForms()
65+
->copyable()
66+
// ->onlyOnForms()
6667
->creationRules('required', 'min:16', 'max:16', Rule::unique('mitras', 'nik')->where('kepka_mitra_id', $request->viaResourceId)),
6768
Text::make('Nama', 'nama')
6869
->sortable()

0 commit comments

Comments
 (0)