Skip to content

Commit

Permalink
Merge pull request #186 from lara-zeus/fix-published-at
Browse files Browse the repository at this point in the history
fix published at and make it required
  • Loading branch information
atmonshi authored Feb 9, 2024
2 parents 7620b78 + 3155f9d commit 88bc20d
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 88bc20d

Please sign in to comment.