Visible On Edit
how do i make input visible only on edit with the $record->status = true?
6 Replies
->visible(fn(?Model $record) => $record->status)
try thisthank you for your answer but when i tried it "visible" is not working when there is "visibleOn", so how do i know its on edit inside "visible"?
try:
->visible(fn ($livewire, $record) => $livewire instanceof EditRecord && $record->status)
This should work πAwesome! it worked perfectly
perfect