Skip to content

Commit

Permalink
fix published at and make it required
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Feb 9, 2024
1 parent 7620b78 commit 3155f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Filament/Resources/PageResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public static function form(Form $form): Form

DateTimePicker::make('published_at')
->label(__('published at'))
->required()
->default(now()),
]),
Tabs\Tab::make(__('Image'))->schema([
Expand Down
1 change: 1 addition & 0 deletions src/Filament/Resources/PostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public static function form(Form $form): Form

DateTimePicker::make('published_at')
->label(__('published at'))
->required()
->native(false)
->default(now()),

Expand Down

0 comments on commit 3155f9d

Please sign in to comment.