Skip to content

Commit 9c5aaf5

Browse files
Update default date handling in Download action to use default method
1 parent 3553754 commit 9c5aaf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Nova/Actions/Download.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function fields(NovaRequest $request)
9797
if ($this->withTanggal) {
9898
$fields[] = Date::make('Tanggal', 'tanggal')
9999
->rules('required', 'date', 'before_or_equal:today')
100-
->setValue(now());
100+
->default(now());
101101
}
102102

103103
if ($this->withOptionPengelola) {

0 commit comments

Comments
 (0)