{"id":6057,"date":"2021-05-01T17:21:33","date_gmt":"2021-05-01T17:21:33","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=6057"},"modified":"2021-05-01T17:21:33","modified_gmt":"2021-05-01T17:21:33","slug":"how-to-fetch-data-from-multiple-tables-in-laravel","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/","title":{"rendered":"How to fetch data from multiple tables in laravel"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> <strong>Download Laravel Framework<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For download fresh copy of Laravel framework, so first we have to into command prompt and run following command. This command will make\u00a0<strong>join_table<\/strong>\u00a0directory and under that directory it will download Laravel framework latest version.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project --prefer-dist laravel\/laravel join_table \"5.8.*\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"87\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/join-table.jpg\" alt=\"\" class=\"wp-image-6059\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/join-table.jpg 742w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/join-table-300x35.jpg 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> <strong><strong>Make Database connection<\/strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After download and install Laravel framework and after this we want to make first database connection. So for make database connection, we have to open\u00a0<strong>.env<\/strong>\u00a0file and under this file, we have to define mysql database configuration. So it will create database connection in Laravel framework.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DB_DATABASE=testing\nDB_USERNAME=root<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"140\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/database.jpg\" alt=\"\" class=\"wp-image-6061\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step3:<\/strong> <strong><strong>S<\/strong><\/strong>ql file import<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have make database connection, then after we have to make table in mysql database. So for this you have to run following sql script in your local database, so it will create table in your define mysql database.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/dharmu9898\/a1dc5f1d95690a118ac762cbc6776cd4.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step3:<\/strong> <strong>Create Model Class<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Laravel framework, we have to create model class for database related operation. So for create model classe using compost, we have go to command prompt and run following command, this command will make model class file with name\u00a0<strong>Country.php<\/strong>\u00a0under\u00a0<strong>app\/Models<\/strong>\u00a0folder.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:model Country<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After create model class, we have to open that file and under that file we have to define mysql table name details and column details.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/dharmu9898\/17bec28451a21a38304ae4531a3808a6.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step4:<strong>Create Controller Class<\/strong><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Under this Laravel framework, for handle HTTP request we have to create controller class. So for create controller using compost, we have go to command prompt and run following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:controller JointableController<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once your controller class has been create then for open that file, we have go to\u00a0<strong>app\/Http\/Controllers\/JointableController.php<\/strong>\u00a0file and under this file you have write following code for join multiple table using eloquent model and fetch data from multiple table in single query execution.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/dharmu9898\/31badcf17904243868c7c25e2c59ae96.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step4:<\/strong> <strong>Create View Blade file<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For display HTML output in browser, so we have to create view blade file in Laravel framework. In Laravel framework view blade file has been store under\u00a0<strong>resources\/views<\/strong>\u00a0folder. Under this file, we have create\u00a0<strong>join_table.blade.php<\/strong>\u00a0file. Under this file, it will received data from controller class file. You can find source code of this view blade file in below.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/dharmu9898\/c4d93855b8663a46be2ad8c73ae79965.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5: Set Route<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Under this Laravel framework, we have to set route of the controller method. For set route in Laravel 8 framework, we have to open\u00a0<strong>routes\/web.php<\/strong>\u00a0file. In Laravel 8 framework for set route, we have to first import our controller class under this\u00a0<strong>web.php<\/strong>\u00a0file. And for set route you can find source code below.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/dharmu9898\/3fb54f51a2c683d982aec6ea34eb1a2d.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 6:<\/strong> <strong>Run Laravel Server<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After follow all above steps now all are set now we want to run Laravel application in browser. So for this, we have to go command prompt and run following command.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nphp artisan serve\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Once you have run above command so after run this command it will provide us base url of our Laravel application. So for check above script output, we have to hit following url in browser.<\/p>\n\n\n\nhttp:\/\/127.0.0.1\/join_table\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Download Laravel Framework For download fresh copy of Laravel framework, so first we have to into command prompt [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":6071,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[],"tags":[5263],"class_list":["post-6057","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-datatables"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to fetch data from multiple tables in laravel - scmGalaxy<\/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:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fetch data from multiple tables in laravel - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Step 1: Download Laravel Framework For download fresh copy of Laravel framework, so first we have to into command prompt [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-01T17:21:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/maxresdefault-1-e1619889614648.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"615\" \/>\n\t<meta property=\"og:image:height\" content=\"346\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"dharmendra K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dharmendra K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/\"},\"author\":{\"name\":\"dharmendra K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/cd8e86c9e9d41f571c169472b896fc89\"},\"headline\":\"How to fetch data from multiple tables in laravel\",\"datePublished\":\"2021-05-01T17:21:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/\"},\"wordCount\":503,\"commentCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/maxresdefault-1-e1619889614648.jpg\",\"keywords\":[\"datatables\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/\",\"name\":\"How to fetch data from multiple tables in laravel - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/maxresdefault-1-e1619889614648.jpg\",\"datePublished\":\"2021-05-01T17:21:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/cd8e86c9e9d41f571c169472b896fc89\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/maxresdefault-1-e1619889614648.jpg\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/maxresdefault-1-e1619889614648.jpg\",\"width\":615,\"height\":346},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-fetch-data-from-multiple-tables-in-laravel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fetch data from multiple tables in laravel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/cd8e86c9e9d41f571c169472b896fc89\",\"name\":\"dharmendra K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g\",\"caption\":\"dharmendra K\"},\"description\":\"A software engineer is a person who applies the principles of software engineering to the design, development, maintenance, testing, and evaluation of computer software.\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/dharmendra\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fetch data from multiple tables in laravel - scmGalaxy","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:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/","og_locale":"en_US","og_type":"article","og_title":"How to fetch data from multiple tables in laravel - scmGalaxy","og_description":"Step 1: Download Laravel Framework For download fresh copy of Laravel framework, so first we have to into command prompt [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/","og_site_name":"scmGalaxy","article_published_time":"2021-05-01T17:21:33+00:00","og_image":[{"width":615,"height":346,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/maxresdefault-1-e1619889614648.jpg","type":"image\/jpeg"}],"author":"dharmendra K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dharmendra K","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/"},"author":{"name":"dharmendra K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/cd8e86c9e9d41f571c169472b896fc89"},"headline":"How to fetch data from multiple tables in laravel","datePublished":"2021-05-01T17:21:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/"},"wordCount":503,"commentCount":2,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/maxresdefault-1-e1619889614648.jpg","keywords":["datatables"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/","name":"How to fetch data from multiple tables in laravel - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/maxresdefault-1-e1619889614648.jpg","datePublished":"2021-05-01T17:21:33+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/cd8e86c9e9d41f571c169472b896fc89"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/maxresdefault-1-e1619889614648.jpg","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/05\/maxresdefault-1-e1619889614648.jpg","width":615,"height":346},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-fetch-data-from-multiple-tables-in-laravel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to fetch data from multiple tables in laravel"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/cd8e86c9e9d41f571c169472b896fc89","name":"dharmendra K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3cbe7c92d93275f1313c076c322e0897b60f3d88bfcd9cddf106951a53a8e3c2?s=96&d=mm&r=g","caption":"dharmendra K"},"description":"A software engineer is a person who applies the principles of software engineering to the design, development, maintenance, testing, and evaluation of computer software.","url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/dharmendra\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=6057"}],"version-history":[{"count":3,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6057\/revisions"}],"predecessor-version":[{"id":6072,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/6057\/revisions\/6072"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/6071"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=6057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=6057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=6057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}