{"id":3936,"date":"2019-03-19T09:18:25","date_gmt":"2019-03-19T09:18:25","guid":{"rendered":"https:\/\/infyblog.zluck.in\/?p=3936"},"modified":"2025-07-17T09:44:19","modified_gmt":"2025-07-17T09:44:19","slug":"how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator","status":"publish","type":"post","link":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/","title":{"rendered":"Show Relationship Data in Laravel DataTables"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3936\" class=\"elementor elementor-3936\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1d79e9c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1d79e9c\" 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-0d94ccd\" data-id=\"0d94ccd\" 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-27fae74 elementor-widget elementor-widget-text-editor\" data-id=\"27fae74\" 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>Lots of people asked a question on our <a href=\"https:\/\/github.com\/InfyOmLabs\/laravel-generator\">Github Repo<\/a> about how they can display relationship data into index while using <a href=\"https:\/\/datatables.net\/\">Datatables<\/a>. so I decided to write a post with a detailed tutorial on that. Let&#8217;s see how it&#8217;s possible.<\/p><h2>Problem:<\/h2><p>Let&#8217;s imagine the following simple scenario. We have a users table and we have a posts table. Post table is pretty simple with the following fields:<\/p><ul><li>id<\/li><li>author_id<\/li><li>title<\/li><li>body<\/li><li>created_at<\/li><li>updated_at<\/li><\/ul><p>Where <em><strong>author_id<\/strong><\/em> is a foreign key to the users table. We want to display the author name into the index table.<\/p><p>But since we need that data from the relationship, there is no direct way to display that into Datatable.<\/p><h2>Solution:<\/h2><p>Let&#8217;s perform the following steps <strong>(before performing these steps, generate your CRUD with datatables for Post model):<\/strong><\/p><h2>Step 1: Add author relationship into Post model<\/h2><p>Since we want to display the author name of the post, let&#8217;s add <em><strong>author<\/strong><\/em> relationship into <em><strong>Post.php<\/strong><\/em><\/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-603b0f3 elementor-widget elementor-widget-code-highlight\" data-id=\"603b0f3\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>public function author() {     \nreturn $this->belongsTo(User::class, 'author_id'); \n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c4d2309 elementor-widget elementor-widget-text-editor\" data-id=\"c4d2309\" 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<h2>Step 2: Modify PostDataTable<\/h2><p>Since we have to display relationship data we need to load it using <a href=\"https:\/\/laravel.com\/docs\/5.8\/eloquent-relationships#eager-loading\">eager loading<\/a> of laravel. Modify the <em><strong>query<\/strong><\/em> method of <em><strong>PostDataTable.php<\/strong><\/em>. something like,<\/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-1b658d5 elementor-widget elementor-widget-code-highlight\" data-id=\"1b658d5\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>public function query(Post $model) {     \nreturn $model->newQuery()->with(['author']); \n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f5e0b4d elementor-widget elementor-widget-text-editor\" data-id=\"f5e0b4d\" 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>Also, we need to add one more column author name into the datatable. so modify <strong><em>getColumns<\/em><\/strong> method and add that to the array. something like,<\/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-cfd8c3b elementor-widget__width-initial elementor-widget elementor-widget-code-highlight\" data-id=\"cfd8c3b\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-javascript line-numbers\">\n\t\t\t\t<code readonly=\"true\" class=\"language-javascript\">\n\t\t\t\t\t<xmp>protected function getColumns() {     \nreturn [        \n       'title',         \n       'author_name' => new \\Yajra\\DataTables\\Html\\Column([\n       'title' => 'Author Name', \n       'data' => 'author.name',\n       'name' => 'author.name'\n      ])     \n  ]; \n}<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7e66a71 elementor-widget elementor-widget-text-editor\" data-id=\"7e66a71\" 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>This will add one more column with header &#8220;<strong><em>Author Name<\/em><\/strong>&#8221; in the datatable before &#8220;<strong><em>Action<\/em><\/strong>&#8221; column. Here, we are adding custom datatable column where key will the name of column which datatable use internally, title will be used for Datatable Column header title and data will be used for retrieving data.<\/p><p>And that&#8217;s it. Run your code and you should be able to see Author name of the post into your datatable.<\/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>Lots of people asked a question on our Github Repo about how they can display relationship data into index while using&#8230;<\/p>\n","protected":false},"author":2,"featured_media":3938,"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":[66],"class_list":["post-3936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-laravel-datatable"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Show Relationship Data in Laravel DataTables<\/title>\n<meta name=\"description\" content=\"Display related model data in Yajra DataTables with InfyOm Laravel Generator, configure eager loading, relationships, columns &amp; AJAX loading.\" \/>\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\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Show Relationship Data in Laravel DataTables\" \/>\n<meta property=\"og:description\" content=\"Display related model data in Yajra DataTables with InfyOm Laravel Generator, configure eager loading, relationships, columns &amp; AJAX loading.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/\" \/>\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=\"2019-03-19T09:18:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-17T09:44:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.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\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/\"},\"author\":{\"name\":\"InfyOm\",\"@id\":\"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754\"},\"headline\":\"Show Relationship Data in Laravel DataTables\",\"datePublished\":\"2019-03-19T09:18:25+00:00\",\"dateModified\":\"2025-07-17T09:44:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/\"},\"wordCount\":298,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/infyom.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png\",\"keywords\":[\"Laravel Datatable\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/\",\"url\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/\",\"name\":\"Show Relationship Data in Laravel DataTables\",\"isPartOf\":{\"@id\":\"https:\/\/infyom.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png\",\"datePublished\":\"2019-03-19T09:18:25+00:00\",\"dateModified\":\"2025-07-17T09:44:19+00:00\",\"description\":\"Display related model data in Yajra DataTables with InfyOm Laravel Generator, configure eager loading, relationships, columns & AJAX loading.\",\"breadcrumb\":{\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage\",\"url\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png\",\"contentUrl\":\"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png\",\"width\":772,\"height\":484,\"caption\":\"display relationship data\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/infyom.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Show Relationship Data in Laravel DataTables\"}]},{\"@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":"Show Relationship Data in Laravel DataTables","description":"Display related model data in Yajra DataTables with InfyOm Laravel Generator, configure eager loading, relationships, columns & AJAX loading.","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\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/","og_locale":"en_US","og_type":"article","og_title":"Show Relationship Data in Laravel DataTables","og_description":"Display related model data in Yajra DataTables with InfyOm Laravel Generator, configure eager loading, relationships, columns & AJAX loading.","og_url":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/","og_site_name":"Blog | InfyOm Technologies","article_publisher":"https:\/\/www.facebook.com\/infyom","article_published_time":"2019-03-19T09:18:25+00:00","article_modified_time":"2025-07-17T09:44:19+00:00","og_image":[{"width":772,"height":484,"url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.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\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#article","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/"},"author":{"name":"InfyOm","@id":"https:\/\/infyom.com\/blog\/#\/schema\/person\/659bfc844c333d041221e83c5f5ec754"},"headline":"Show Relationship Data in Laravel DataTables","datePublished":"2019-03-19T09:18:25+00:00","dateModified":"2025-07-17T09:44:19+00:00","mainEntityOfPage":{"@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/"},"wordCount":298,"commentCount":0,"publisher":{"@id":"https:\/\/infyom.com\/blog\/#organization"},"image":{"@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png","keywords":["Laravel Datatable"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/","url":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/","name":"Show Relationship Data in Laravel DataTables","isPartOf":{"@id":"https:\/\/infyom.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage"},"image":{"@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage"},"thumbnailUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png","datePublished":"2019-03-19T09:18:25+00:00","dateModified":"2025-07-17T09:44:19+00:00","description":"Display related model data in Yajra DataTables with InfyOm Laravel Generator, configure eager loading, relationships, columns & AJAX loading.","breadcrumb":{"@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#primaryimage","url":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png","contentUrl":"https:\/\/infyom.com\/blog\/wp-content\/uploads\/2024\/07\/disaply-relationship-data.png","width":772,"height":484,"caption":"display relationship data"},{"@type":"BreadcrumbList","@id":"https:\/\/infyom.com\/blog\/how-to-display-relationship-data-into-yajra-datatables-with-infyom-laravel-generator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/infyom.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Show Relationship Data in Laravel DataTables"}]},{"@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\/3936","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=3936"}],"version-history":[{"count":9,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/3936\/revisions"}],"predecessor-version":[{"id":8197,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/posts\/3936\/revisions\/8197"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media\/3938"}],"wp:attachment":[{"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/media?parent=3936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/categories?post=3936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infyom.com\/blog\/wp-json\/wp\/v2\/tags?post=3936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}