feat: set default value for published_at field in NewsForm schema

This commit is contained in:
Yoga Pangestu 2026-05-04 08:52:53 +07:00
parent dab8dc7eee
commit 382dc4aa03

View File

@ -25,7 +25,8 @@ public static function configure(Schema $schema): Schema
Hidden::make('author_id')
->default(auth()->id()),
Hidden::make('published_at'),
Hidden::make('published_at')
->default(now()),
Section::make(CheerfulNotification::getByKey('news.content.title'))
->description(CheerfulNotification::getByKey('news.content.desc'))