Skip to content

Commit

Permalink
Change Text from Post to Page
Browse files Browse the repository at this point in the history
  • Loading branch information
rabol authored Sep 29, 2024
1 parent f125e2a commit 978dffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Filament/Resources/PageResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function form(Form $form): Form
Tabs::make('post_tabs')->schema([
Tabs\Tab::make(__('Title & Content'))->schema([
TextInput::make('title')
->label(__('Post Title'))
->label(__('Page Title'))
->required()
->maxLength(255)
->live(onBlur: true)
Expand All @@ -86,13 +86,13 @@ public static function form(Form $form): Form
Textarea::make('description')
->maxLength(255)
->label(__('Description'))
->hint(__('Write an excerpt for your post')),
->hint(__('Write an excerpt for your page')),

TextInput::make('slug')
->unique(ignorable: fn (?Post $record): ?Post => $record)
->required()
->maxLength(255)
->label(__('Post Slug')),
->label(__('Page Slug')),

Select::make('parent_id')
->options(SkyPlugin::get()->getModel('Post')::where('post_type', 'page')->pluck(
Expand Down

0 comments on commit 978dffc

Please sign in to comment.