From dab8dc7eee1976e19ac0b58d14d6a3a8b161da6f Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Tue, 28 Apr 2026 10:20:36 +0700 Subject: [PATCH] feat: add hidden field for published_at in NewsForm schema --- app/Filament/Resources/Publication/News/Schemas/NewsForm.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Filament/Resources/Publication/News/Schemas/NewsForm.php b/app/Filament/Resources/Publication/News/Schemas/NewsForm.php index 7aaf1ef..f2425f7 100644 --- a/app/Filament/Resources/Publication/News/Schemas/NewsForm.php +++ b/app/Filament/Resources/Publication/News/Schemas/NewsForm.php @@ -25,6 +25,8 @@ public static function configure(Schema $schema): Schema Hidden::make('author_id') ->default(auth()->id()), + Hidden::make('published_at'), + Section::make(CheerfulNotification::getByKey('news.content.title')) ->description(CheerfulNotification::getByKey('news.content.desc')) ->icon(CheerfulNotification::getNotifStyle() === NotifStyle::CHEERFUL ? 'heroicon-o-pencil-square' : null)