feat: add hidden field for published_at in NewsForm schema
This commit is contained in:
parent
2413d66f42
commit
dab8dc7eee
@ -25,6 +25,8 @@ public static function configure(Schema $schema): Schema
|
|||||||
Hidden::make('author_id')
|
Hidden::make('author_id')
|
||||||
->default(auth()->id()),
|
->default(auth()->id()),
|
||||||
|
|
||||||
|
Hidden::make('published_at'),
|
||||||
|
|
||||||
Section::make(CheerfulNotification::getByKey('news.content.title'))
|
Section::make(CheerfulNotification::getByKey('news.content.title'))
|
||||||
->description(CheerfulNotification::getByKey('news.content.desc'))
|
->description(CheerfulNotification::getByKey('news.content.desc'))
|
||||||
->icon(CheerfulNotification::getNotifStyle() === NotifStyle::CHEERFUL ? 'heroicon-o-pencil-square' : null)
|
->icon(CheerfulNotification::getNotifStyle() === NotifStyle::CHEERFUL ? 'heroicon-o-pencil-square' : null)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user