feat: set default value for published_at field in NewsForm schema
This commit is contained in:
parent
dab8dc7eee
commit
382dc4aa03
@ -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'))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user