public function getPageVersionByName($page, $versionName) { return $page->versions()->with('fields')->whereName($versionName)->first(); }