{"id":4861,"date":"2020-01-07T12:31:30","date_gmt":"2020-01-07T12:31:30","guid":{"rendered":"https:\/\/infyblog.zluck.in\/?p=4861"},"modified":"2024-08-12T09:45:13","modified_gmt":"2024-08-12T09:45:13","slug":"use-of-required-without-validation-rule-in-laravel","status":"publish","type":"post","link":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/","title":{"rendered":"Use of Required Without Validation Rule in Laravel"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4861\" class=\"elementor elementor-4861\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-caf7463 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"caf7463\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10ffd98\" data-id=\"10ffd98\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\n\t\t<div class=\"elementor-element elementor-element-09095bc elementor-widget elementor-widget-text-editor\" data-id=\"09095bc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Last month, I got consulting for one Laravel project where we have to perform some complex validations.<\/p><p>The scenario was while creating an order, either the customer can select the existing address from the dropdown or he may have an option to create a new address with all address fields.<\/p><p>And when a customer hits enter, the backend needs to validate, if <span style=\"color: #e83e8c;\">address_id<\/span> is sent into request then it needs to check if that address id exists and then use that address_id for that particular order. Otherwise, it needs to check if required fields (address1, city, zip, country) for the address are sent, then use them, create a new address and use that new <span style=\"color: #e83e8c;\">address_id<\/span>.<\/p><p>so far how validation was happening was manual, so in controller this all manual validation was happening. But I don&#8217;t find that a proper way. The goal was to do validation from CreateOrderRequest only. so it goes back with proper laravel error messages from a request only and displays them on the page. so we actually do not need to make any manual efforts to make this happen.<\/p><p>That&#8217;s where <span style=\"color: #e83e8c;\">required_without<\/span> validation rule helped us.<\/p><p>The UI was something like this,<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f237b50 elementor-widget elementor-widget-image\" data-id=\"f237b50\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"390\" src=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-laravel-validation-rule.png\" class=\"attachment-large size-large wp-image-4867\" alt=\"Required Without Validation Rule in Laravel\" srcset=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-laravel-validation-rule.png 918w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-laravel-validation-rule-300x146.png 300w, https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-laravel-validation-rule-768x374.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f948dc elementor-widget elementor-widget-text-editor\" data-id=\"3f948dc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>In the above UI, customers can either type Address1, Address2, City and Zip or just go and select an existing address from the dropdown.<\/p><p>To do this validation from form request, we used the <span style=\"color: #e83e8c;\">required_without<\/span> rule as following, <span style=\"color: #e83e8c;\">&#8216;address_id&#8217; =&gt; &#8216;required_without:address_1,city,zip|sometimes|nullable|exists:addresses,id&#8217;,<\/span><\/p><p>Now let&#8217;s try to understand what&#8217;s happening here. To understand it better let&#8217;s divide the rules<\/p><ol><li>required_without:address_1,city,zip<\/li><li>sometimes\\<\/li><li>nullable<\/li><li>exist:addresses,id<\/li><\/ol><h2>1. required_without:address _1,city,zip<\/h2><p>This rule validates that <span style=\"color: #e83e8c;\">address_id<\/span> field is required without the presence of <span style=\"color: #e83e8c;\">address_1<\/span>, <span style=\"color: #e83e8c;\">city<\/span> and <span style=\"color: #e83e8c;\">zip<\/span> fields<\/p><h2>2. sometimes<\/h2><p>This means, <span style=\"color: #e83e8c;\">address_id<\/span> fields will be passed only sometimes and not required all the time. We need this because when <span style=\"color: #e83e8c;\">address_1<\/span>, <span style=\"color: #e83e8c;\">city<\/span> and <span style=\"color: #e83e8c;\">zip<\/span> fields will be present then we do not need it at all.<\/p><h2>3. nullable<\/h2><p>This means, <span style=\"color: #e83e8c;\">address_id<\/span> fields can be null since it will be null when a customer does not select the address from the dropdown.<\/p><h2>4. exist:addresses,id<\/h2><p>The passed value in <span style=\"color: #e83e8c;\">address_id<\/span> fields, must exist in the <span style=\"color: #e83e8c;\">addresses<\/span> table.<\/p><p>So this is how we solved this complex validation in a very easy way by using multiple powerful laravel validation rules.<\/p><p>Hope this can help others as well.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>How to handle complex laravel validation rules like required_without with checking if a record exists for a given id in&#8230;<\/p>\n","protected":false},"author":2,"featured_media":4865,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"two_page_speed":[],"footnotes":""},"categories":[9],"tags":[19],"class_list":["post-4861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-learning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Use of Required Without Validation Rule in Laravel<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use of Required Without Validation Rule in Laravel\" \/>\n<meta property=\"og:description\" content=\"How to handle complex laravel validation rules like required_without with checking if a record exists for a given id in...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog | InfyOm Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/infyom\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-07T12:31:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-12T09:45:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"772\" \/>\n\t<meta property=\"og:image:height\" content=\"484\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InfyOm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InfyOm\" \/>\n<meta name=\"twitter:site\" content=\"@InfyOm\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InfyOm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/\"},\"author\":{\"name\":\"InfyOm\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754\"},\"headline\":\"Use of Required Without Validation Rule in Laravel\",\"datePublished\":\"2020-01-07T12:31:30+00:00\",\"dateModified\":\"2024-08-12T09:45:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/\"},\"wordCount\":421,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/infyom.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png\",\"keywords\":[\"Learning\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/\",\"url\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/\",\"name\":\"Use of Required Without Validation Rule in Laravel\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png\",\"datePublished\":\"2020-01-07T12:31:30+00:00\",\"dateModified\":\"2024-08-12T09:45:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage\",\"url\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png\",\"contentUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png\",\"width\":772,\"height\":484,\"caption\":\"Required Without Validation Rule in Laravel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/infyom.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use of Required Without Validation Rule in Laravel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/infyom.com\/blog\/#website\",\"url\":\"https:\/\/infyom.com\/blog\/\",\"name\":\"Blog | InfyOm Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/infyom.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/infyom.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/infyom.com\/blog\/#organization\",\"name\":\"InfyOm Technologies\",\"url\":\"https:\/\/infyom.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png\",\"contentUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png\",\"width\":88,\"height\":41,\"caption\":\"InfyOm Technologies\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/infyom\",\"https:\/\/x.com\/InfyOm\",\"https:\/\/www.instagram.com\/infyomtechnologies\/\",\"https:\/\/in.linkedin.com\/company\/infyom-technologies\",\"https:\/\/github.com\/infyomlabs\",\"https:\/\/x.com\/infyom\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754\",\"name\":\"InfyOm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g\",\"caption\":\"InfyOm\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use of Required Without Validation Rule in Laravel","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/","og_locale":"en_US","og_type":"article","og_title":"Use of Required Without Validation Rule in Laravel","og_description":"How to handle complex laravel validation rules like required_without with checking if a record exists for a given id in...","og_url":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/","og_site_name":"Blog | InfyOm Technologies","article_publisher":"https:\/\/www.facebook.com\/infyom","article_published_time":"2020-01-07T12:31:30+00:00","article_modified_time":"2024-08-12T09:45:13+00:00","og_image":[{"width":772,"height":484,"url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png","type":"image\/png"}],"author":"InfyOm","twitter_card":"summary_large_image","twitter_creator":"@InfyOm","twitter_site":"@InfyOm","twitter_misc":{"Written by":"InfyOm","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#article","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/"},"author":{"name":"InfyOm","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754"},"headline":"Use of Required Without Validation Rule in Laravel","datePublished":"2020-01-07T12:31:30+00:00","dateModified":"2024-08-12T09:45:13+00:00","mainEntityOfPage":{"@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/"},"wordCount":421,"commentCount":0,"publisher":{"@id":"https:\/\/infyom.com\/blog\/#organization"},"image":{"@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png","keywords":["Learning"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/","url":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/","name":"Use of Required Without Validation Rule in Laravel","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage"},"image":{"@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png","datePublished":"2020-01-07T12:31:30+00:00","dateModified":"2024-08-12T09:45:13+00:00","breadcrumb":{"@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#primaryimage","url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png","contentUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/required-without-rule-feature-image.png","width":772,"height":484,"caption":"Required Without Validation Rule in Laravel"},{"@type":"BreadcrumbList","@id":"https:\/\/infyom.com\/blog\/use-of-required-without-validation-rule-in-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/infyom.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Use of Required Without Validation Rule in Laravel"}]},{"@type":"WebSite","@id":"https:\/\/infyom.com\/blog\/#website","url":"https:\/\/infyom.com\/blog\/","name":"Blog | InfyOm Technologies","description":"","publisher":{"@id":"https:\/\/infyom.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/infyom.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/infyom.com\/blog\/#organization","name":"InfyOm Technologies","url":"https:\/\/infyom.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png","contentUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/06\/InfyOm-Logo.png","width":88,"height":41,"caption":"InfyOm Technologies"},"image":{"@id":"https:\/\/infyom.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/infyom","https:\/\/x.com\/InfyOm","https:\/\/www.instagram.com\/infyomtechnologies\/","https:\/\/in.linkedin.com\/company\/infyom-technologies","https:\/\/github.com\/infyomlabs","https:\/\/x.com\/infyom"]},{"@type":"Person","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754","name":"InfyOm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ad162864d8d33c04ea9e6d0333cc483?s=96&d=mm&r=g","caption":"InfyOm"}}]}},"_links":{"self":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/4861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/comments?post=4861"}],"version-history":[{"count":6,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/4861\/revisions"}],"predecessor-version":[{"id":5885,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/4861\/revisions\/5885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media\/4865"}],"wp:attachment":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media?parent=4861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/categories?post=4861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/tags?post=4861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}