Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
make image required during creation
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparRosin committed Feb 26, 2020
1 parent 073f78c commit 434abc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nova/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function fields(Request $request)
config('nova-blog.use_trix') === true ? Trix::make('Text content', 'text_content') : Markdown::make('Text content', 'text_content'),
])
->addLayout('Image section', 'image', [
Image::make('Image', 'image')->deletable(false)->rules('required'),
Image::make('Image', 'image')->deletable(false)->creationRules('required'),
Text::make('Image caption', 'caption'),
Text::make('Alt (image alternate text)', 'alt')
])
Expand Down

0 comments on commit 434abc0

Please sign in to comment.