From 3155f9d8e10dcccbec027fd4bbbd1d7b82c48efe Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Fri, 9 Feb 2024 19:05:57 +0300 Subject: [PATCH] fix published at and make it required --- src/Filament/Resources/PageResource.php | 1 + src/Filament/Resources/PostResource.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Filament/Resources/PageResource.php b/src/Filament/Resources/PageResource.php index 6682adb..0e23c97 100644 --- a/src/Filament/Resources/PageResource.php +++ b/src/Filament/Resources/PageResource.php @@ -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([ diff --git a/src/Filament/Resources/PostResource.php b/src/Filament/Resources/PostResource.php index da990be..70af34e 100644 --- a/src/Filament/Resources/PostResource.php +++ b/src/Filament/Resources/PostResource.php @@ -117,6 +117,7 @@ public static function form(Form $form): Form DateTimePicker::make('published_at') ->label(__('published at')) + ->required() ->native(false) ->default(now()),