File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,9 @@ return new class extends Migration
7878
7979 // Parent-child:
8080 if(FilamentFlexibleContentBlockPages::config()->isParentEnabled($pageModel)) {
81- $table->unsignedBigInteger('parent_id')
82- ->nullable();
83- $table->foreign('parent_id')
84- ->references('id')
85- ->on($pageTable)
86- ->onDelete('set null');
81+ $table->bigInteger('parent_id')
82+ ->default(\SolutionForest\FilamentTree\Support\Utils::defaultParentId())
83+ ->index();
8784 $table->integer('order')
8885 ->default(0);
8986 }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ protected function getActions(): array
2626 FlexibleLocaleSwitcher::make (),
2727 CreateAction::make (),
2828 Action::make ('page_tree ' )
29- ->label (flexiblePagesTrans ('actions.page_tree_lbl ' ))
29+ ->label (flexiblePagesTrans ('pages. actions.page_tree_lbl ' ))
3030 ->icon ('heroicon-o-arrow-turn-down-right ' )
3131 ->color ('gray ' )
3232 ->visible (FilamentFlexibleContentBlockPages::config ()->isParentEnabled ($ this ->getModel ()))
Original file line number Diff line number Diff line change 55use SolutionForest \FilamentTree \Resources \Pages \TreePage ;
66use Statikbe \FilamentFlexibleContentBlockPages \Facades \FilamentFlexibleContentBlockPages ;
77use Statikbe \FilamentFlexibleContentBlockPages \FilamentFlexibleContentBlockPagesConfig ;
8- use Statikbe \FilamentFlexibleContentBlockPages \Resources \PageResource ;
98
109class ManagePageTree extends TreePage
1110{
You can’t perform that action at this time.
0 commit comments