I use page::create to create new childs in PHP. However, I am wondering how the Code have to look when I want to create a entry for a pages field. In Yaml it’s saved like this:
Image:
- >
products/test
How can this be done with PHP? I have no idea to be honest.
$page = Page::create([
'slug' => 'child1',
'template' => 'product',
'content' => [
'title' => 'Child 1',
'image' => ?
]
]);