Easiest way would be to replace pluck('id')
with pluck('uid')
in my code, but please note that only the UID will be stored then, so you need to use page('projects/' . $page->mypage())
in your template to get the parent back.
2 Likes