- Pop this file in your
app/Console/Commands/
- Create the new collection e.g.
support
- Run
php artisan tree:split pages:d76793d4-de7c-4707-b0fb-02712fdac7f7 support
(obv. replace the collection names and the branch root ID with relevant ones for your case)
It attempts to split an entire branch at the given page ID from that source collection's tree and move that branch (that page and all of its children) into a new collection.
It will probably do the job, but break a lot of stuff along the way. You may have references to those entries from other places. Those references may need updating in some way.