{"id":120,"date":"2024-09-18T07:21:13","date_gmt":"2024-09-18T07:21:13","guid":{"rendered":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/?p=120"},"modified":"2024-10-15T05:51:02","modified_gmt":"2024-10-15T05:51:02","slug":"integrating-elasticsearch-in-laravel-a-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/","title":{"rendered":"Integrating Elasticsearch in Laravel: A Step-by-Step Guide"},"content":{"rendered":"<p>Integrating Elasticsearch with Laravel can significantly enhance your web application&#8217;s search capabilities. Elasticsearch.elasticsearch is a powerful, open-source search and analytics engine known for its speed and scalability. On the other hand, Laravel is a <a href=\"https:\/\/laravel.com\/\">popular PHP framework<\/a> that simplifies web development through its elegant syntax and robust features.<\/p>\n<p>Here, in this blog, you will learn how to use elastic search in Laravel.<\/p>\n<p><strong>Why Integrate Elasticsearch in Laravel?<\/strong><\/p>\n<p>Here are a few reasons why you should consider integrating Elasticsearch into your Laravel application:<\/p>\n<ul>\n<li><strong>Enhanced Search Capabilities:<\/strong> Elasticsearch allows you to implement advanced search functionalities such as full-text search, autocomplete, and filtering.<\/li>\n<li><strong>SEO Optimization:<\/strong> Efficient search results improve user experience, which can positively impact your website&#8217;s SEO performance.<\/li>\n<li><strong>Scalability:<\/strong> As your application grows, Elasticsearch ensures that your search operations remain fast and efficient.<\/li>\n<\/ul>\n<p><strong>What You Will Learn?<\/strong><\/p>\n<p>In this tutorial, we will cover the following topics:<\/p>\n<ul>\n<li>Setting up a new Laravel project.<\/li>\n<li>Installing and configuring the Elasticsearch PHP client.<\/li>\n<li>Testing the connection to your Elasticsearch server.<\/li>\n<li>Setting up database schemas using migrations.<\/li>\n<li>Indexing data from your database into Elasticsearch.<\/li>\n<li>Implementing advanced search functionalities such as autocomplete.<\/li>\n<\/ul>\n<p>By the end of this tutorial, you&#8217;ll have a seamless integration of Elasticsearch within your Laravel application, ready to deliver powerful search capabilities.<\/p>\n<h2>Setting Up Your Laravel Project<\/h2>\n<h3>Steps to Create a New Laravel Project<\/h3>\n<p>To kickstart your journey into integrating Elasticsearch with Laravel, you need to create a new Laravel project. Begin by opening your terminal and running the following command:<\/p>\n<p>bash laravel new laravelelastic<\/p>\n<p>This command will generate a fresh Laravel application named laravelelastic. Ensure you have Composer installed on your machine since it&#8217;s required to install Laravel.<\/p>\n<h3>Initial Setup and Configuration Details<\/h3>\n<p>Once your new Laravel project is created, navigate into the project directory:<\/p>\n<p>bash cd laravelelastic<\/p>\n<p>Here are some initial setup steps to get your application ready:<\/p>\n<ul>\n<li><strong>Environment Configuration:<\/strong> Rename the .env.example file to .env and update the necessary environment variables, such as database credentials.<\/li>\n<li><strong>Application Key:<\/strong> Generate an application key using the Artisan command: bash php artisan key:generate<\/li>\n<li><strong>Database Migrations:<\/strong> Run the default migrations provided by Laravel to set up your database: bash php artisan migrate<\/li>\n<\/ul>\n<h3>Installing Elasticsearch PHP Client<\/h3>\n<p>Next, you&#8217;ll integrate Elastic PHP into your Laravel application. Start by installing the official <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/client\/php-api\/7.17\/installation.html\">Elasticsearch PHP client<\/a> package using Composer. In this way, you will run Elasticsearch locally.<\/p>\n<h4>Using Composer to Require the Official Elasticsearch PHP Client Package<\/h4>\n<p>In the terminal, run:<\/p>\n<p>bash composer require elasticsearch\/elasticsearch<\/p>\n<p>This command adds the Elasticsearch PHP client to your project. The package provides a robust API for interacting with Elasticsearch from within your PHP <a href=\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/simple-tips-for-improving-code-quality\/\">code<\/a>.<\/p>\n<h4>Importance of Installing the Right Package Version for Compatibility<\/h4>\n<p>It is crucial to ensure that the version of the Elasticsearch PHP client package matches the version of your Elasticsearch server. Incompatibilities between versions can lead to unexpected errors or missing functionalities. You can specify a particular version in your Composer command if needed:<\/p>\n<p>bash composer require elasticsearch\/elasticsearch:^7.10<\/p>\n<p>This example installs version 7.10 of the package, which should be compatible with <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/7.17\/index.html\">Elasticsearch 7.x series<\/a>.<\/p>\n<p>By following these steps, you&#8217;ve successfully set up a new Laravel project and installed the necessary dependencies for Elasticsearch integration. Next, you&#8217;ll configure PHP and Elasticsearch within your Laravel application and establish a connection between them.<\/p>\n<h2>Configuring Elasticsearch in Laravel<\/h2>\n<h3>Creating a Configuration File<\/h3>\n<p>To start integrating Elasticsearch in Laravel, the first step is to create a configuration file. This file will store your connection settings and can be conveniently placed at .config\/elasticsearch.php. Here&#8217;s an example of what this configuration file might look like:<\/p>\n<p>php<\/p>\n<p>&#8216;elasticsearch&#8217; =&gt; [<\/p>\n<p>&#8216;hosts&#8217; =&gt; [<\/p>\n<p>[<\/p>\n<p>&#8216;host&#8217; =&gt; env(&#8216;ELASTICSEARCH_HOST&#8217;, &#8216;localhost&#8217;),<\/p>\n<p>&#8216;port&#8217; =&gt; env(&#8216;ELASTICSEARCH_PORT&#8217;, 9200),<\/p>\n<p>&#8216;scheme&#8217; =&gt; env(&#8216;ELASTICSEARCH_SCHEME&#8217;, &#8216;http&#8217;),<\/p>\n<p>&#8216;user&#8217; =&gt; env(&#8216;ELASTICSEARCH_USER&#8217;, null),<\/p>\n<p>&#8216;pass&#8217; =&gt; env(&#8216;ELASTICSEARCH_PASS&#8217;, null),<\/p>\n<p>],<\/p>\n<p>],<\/p>\n<p>],<\/p>\n<p>In this configuration file, you can specify the host, port, scheme, and authentication details for your Elasticsearch connection. By using environment variables, you can easily modify these settings based on your development, staging, or production environments.<\/p>\n<h3>Establishing a Connection<\/h3>\n<p>Once you have created the configuration file, you can establish a connection to Elasticsearch using Laravel&#8217;s built-in Elasticsearch client. Here&#8217;s an example of how you can retrieve the client instance from the Laravel container:<\/p>\n<p>php<\/p>\n<p>$elasticsearch = app(&#8216;elasticsearch&#8217;);<\/p>\n<p>With the client instance in hand, you can now perform various operations on your Elasticsearch cluster, such as indexing documents, searching for data, and managing indices. In the next section, we&#8217;ll explore some of these operations in more detail.<\/p>\n<h3>Using Elasticsearch in Laravel<\/h3>\n<p>Now that you have successfully configured Elasticsearch in <a href=\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/how-to-secure-laravel-applications-best-practices-and-tips\/\">Laravel<\/a> and established a connection to your cluster, let&#8217;s dive into some common use cases for Elasticsearch within a Laravel application.&#8221;<\/p>\n<p>Autocomplete suggestions can greatly improve the search experience for users by providing real-time suggestions as they type. Elasticsearch PHP search offers a feature called &#8220;completion suggester&#8221; that allows you to implement this functionality easily. By indexing your data using a special &#8220;completion&#8221; data type, you can generate suggestions based on user input.<\/p>\n<p>Fuzzy matching is another powerful technique that Elasticsearch provides. It allows you to perform approximate matching, taking into account minor differences in spellings or word order. By using fuzzy queries or fuzzy match queries, you can deliver relevant results even when there are slight variations in the search terms.<\/p>\n<h2>Conclusion<\/h2>\n<p>Integrating Elasticsearch into your <a href=\"https:\/\/www.hirededicatedlaraveldeveloper.com\/\">Laravel application<\/a> significantly enhances its search capabilities. Following the steps to install and configure the Elasticsearch PHP client, you can establish a seamless connection between Laravel and Elasticsearch.<\/p>\n<p>This integration opens many possibilities for implementing advanced search functionalities such as indexing documents, performing complex search queries, and applying various filters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Integrating Elasticsearch with Laravel can significantly enhance your web application&#8217;s search capabilities. Elasticsearch.elasticsearch is a powerful, open-source search and analytics engine known for its speed and scalability. On the other hand, Laravel is a popular PHP framework that simplifies web development through its elegant syntax and robust features. Here, in this blog, you will learn [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":121,"comment_status":"open","ping_status":"open","sticky":false,"template":"patterns\/single.php","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Integrating Elasticsearch in Laravel: A Step-by-Step Guide<\/title>\n<meta name=\"description\" content=\"Learn how to integrate Elasticsearch in Laravel with this step-by-step guide. Boost your app&#039;s search functionality and performance effortlessly.\" \/>\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.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integrating Elasticsearch in Laravel: A Step-by-Step Guide\" \/>\n<meta property=\"og:description\" content=\"Learn how to integrate Elasticsearch in Laravel with this step-by-step guide. Boost your app&#039;s search functionality and performance effortlessly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"hirededicatedlaraveldeveloper.com\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-18T07:21:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-15T05:51:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png\" \/>\n\t<meta property=\"og:image:width\" content=\"930\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vineet\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vineet\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/\",\"url\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/\",\"name\":\"Integrating Elasticsearch in Laravel: A Step-by-Step Guide\",\"isPartOf\":{\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png\",\"datePublished\":\"2024-09-18T07:21:13+00:00\",\"dateModified\":\"2024-10-15T05:51:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#\/schema\/person\/c9362da4a1c60f29eee3c975d2045732\"},\"description\":\"Learn how to integrate Elasticsearch in Laravel with this step-by-step guide. Boost your app's search functionality and performance effortlessly.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#primaryimage\",\"url\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png\",\"contentUrl\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png\",\"width\":930,\"height\":450,\"caption\":\"Integrating Elasticsearch in Laravel\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrating Elasticsearch in Laravel: A Step-by-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#website\",\"url\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/\",\"name\":\"hirededicatedlaraveldeveloper.com\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#\/schema\/person\/c9362da4a1c60f29eee3c975d2045732\",\"name\":\"Vineet\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/08\/vineet-150x150.jpg\",\"contentUrl\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/08\/vineet-150x150.jpg\",\"caption\":\"Vineet\"},\"sameAs\":[\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/\"],\"url\":\"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/author\/imrk\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Integrating Elasticsearch in Laravel: A Step-by-Step Guide","description":"Learn how to integrate Elasticsearch in Laravel with this step-by-step guide. Boost your app's search functionality and performance effortlessly.","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.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/","og_locale":"en_US","og_type":"article","og_title":"Integrating Elasticsearch in Laravel: A Step-by-Step Guide","og_description":"Learn how to integrate Elasticsearch in Laravel with this step-by-step guide. Boost your app's search functionality and performance effortlessly.","og_url":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/","og_site_name":"hirededicatedlaraveldeveloper.com","article_published_time":"2024-09-18T07:21:13+00:00","article_modified_time":"2024-10-15T05:51:02+00:00","og_image":[{"width":930,"height":450,"url":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png","type":"image\/png"}],"author":"Vineet","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vineet","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/","url":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/","name":"Integrating Elasticsearch in Laravel: A Step-by-Step Guide","isPartOf":{"@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png","datePublished":"2024-09-18T07:21:13+00:00","dateModified":"2024-10-15T05:51:02+00:00","author":{"@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#\/schema\/person\/c9362da4a1c60f29eee3c975d2045732"},"description":"Learn how to integrate Elasticsearch in Laravel with this step-by-step guide. Boost your app's search functionality and performance effortlessly.","breadcrumb":{"@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#primaryimage","url":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png","contentUrl":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/09\/Integrating-Elasticsearch-in-Laravel.png","width":930,"height":450,"caption":"Integrating Elasticsearch in Laravel"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/integrating-elasticsearch-in-laravel-a-step-by-step-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Integrating Elasticsearch in Laravel: A Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#website","url":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/","name":"hirededicatedlaraveldeveloper.com","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#\/schema\/person\/c9362da4a1c60f29eee3c975d2045732","name":"Vineet","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/08\/vineet-150x150.jpg","contentUrl":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-content\/uploads\/2024\/08\/vineet-150x150.jpg","caption":"Vineet"},"sameAs":["https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/"],"url":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/author\/imrk\/"}]}},"_links":{"self":[{"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":3,"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions\/134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/media\/121"}],"wp:attachment":[{"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hirededicatedlaraveldeveloper.com\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}