From 80cc834abf7e967ef09f9e6c1715e85afc1c7974 Mon Sep 17 00:00:00 2001 From: Bradley Miller Date: Sun, 18 Feb 2024 13:23:57 -0600 Subject: [PATCH] Update PageResource.php I believe this was pointed to the wrong model. The page resource was not showing pages to chose from for the parent page. Changing to the Post model instead of PostStatus fixes this. --- src/Filament/Resources/PageResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filament/Resources/PageResource.php b/src/Filament/Resources/PageResource.php index 0e23c97..f070eda 100644 --- a/src/Filament/Resources/PageResource.php +++ b/src/Filament/Resources/PageResource.php @@ -95,7 +95,7 @@ public static function form(Form $form): Form ->label(__('Post Slug')), Select::make('parent_id') - ->options(SkyPlugin::get()->getModel('PostStatus')::where('post_type', 'page')->pluck( + ->options(SkyPlugin::get()->getModel('Post')::where('post_type', 'page')->pluck( 'title', 'id' ))