Skip to content

Commit

Permalink
add required slug
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed Mar 24, 2022
1 parent 1278997 commit fc034f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Nova/NewsItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public function fields(Request $request)
Text::make(__('nova-cms::pages.title'), 'title')
->translatable(),

Text::make(__('nova-cms::pages.slug'), 'slug')
->required()
->rules('required')
->hideFromDetail(),


Tiptap::make(__('nova-cms-news::news_items.abstract'), 'abstract')
->translatable(),

Expand Down

0 comments on commit fc034f2

Please sign in to comment.