Filtering doesn’t make sense if you want to get all description fields of the selected page sets as options, you have to use pluck('description') instead of filterBy()
I wonder if it makes sense to store the description. Why not store the page id and then get the description from the page object instead? The reason why this makes more sense is that the description is more likely to be modified later, so if the content in the field changes, your stored content will be outdated.
It’s just a test, there is no other sense behind it
What is the id of the page?
I can’t see any id in the folderstructure.
Is it defined internally and accessible by $page->id()?
… I see. For example “speisekarte/d_desserts/tiramisu” is the “id”, right?