We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Set parent entry programatically

John Carter October 28, 2020 by John Carter

If I create an entry using Entry::make()->data(['parent' => 'some-entry-id']) how can I update the collection's structure to reflect the parent fields?

Is there a method like Collection::find('products')->refreshStructure() or something?

Answered by John Carter!
>>>>>>> Answered <<<<<<<
1 Reply
1 Follower