{"id":8397,"date":"2024-07-26T05:43:20","date_gmt":"2024-07-26T05:43:20","guid":{"rendered":"https:\/\/www.tuvoc.com\/blog\/\/"},"modified":"2024-11-04T09:05:52","modified_gmt":"2024-11-04T09:05:52","slug":"api-version-techniques-in-laravel-11","status":"publish","type":"post","link":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/","title":{"rendered":"API Version Techniques in Laravel 11"},"content":{"rendered":"<p>API Versioning is essential for any web application, especially if it is supposed to evolve but has to be backward compatible. It is a chance for the developers to upgrade, add new features, and fix bugs without affecting the existing users. Laravel 11 is integrated with powerful tools and techniques for effective implementation of API versioning. This post will go through the different techniques of API versioning in Laravel 11 and how you could make use of them in your project.<\/p>\n<p>A partnership with a <a href=\"https:\/\/www.tuvoc.com\/technologies\/backend\/laravel-development-company\/\"><strong>Laravel development company India<\/strong><\/a> can provide seamless and scalable solutions, arming businesses looking to implement advanced features such as API versioning.<\/p>\n<h2>Why API Versioning is Important?<\/h2>\n<p>First, however, reasons for API versioning are in order. The most important is to achieve the following purposes:<\/p>\n<ul>\n<li>Backward Compatibility: It ensures that already existing clients are not broken by new changes.<\/li>\n<li>Smooth Transition: It allows gradual migration from older versions to newer ones.<\/li>\n<li>Organized Development: Facilitates easy management of different versions of the API.<\/li>\n<li>Improved User Experience: The API provides a stable and predictable environment to API consumers.<\/li>\n<\/ul>\n<h3>API Versioning Techniques in Laravel 11<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-12-1.jpg\" alt=\"API-Version-Techniques-in-Laravel-12-1\" width=\"1280\" height=\"720\" class=\"alignnone wp-image-8398 size-full\" srcset=\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-12-1.jpg 1280w, https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-12-1-300x169.jpg 300w, https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-12-1-1024x576.jpg 1024w, https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-12-1-768x432.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<h3>1. URL Path Versioning:<\/h3>\n<p>This is one of the most common techniques. In this, the version number gets appended to the URL path. This kind of versioning, based on a URL path, is pretty easy to implement.<\/p>\n<p><strong>Implementation<\/strong><\/p>\n<p><strong>1. Define Versioned Routes:<\/strong><\/p>\n<p>Create separate route files for each version of your API within the \u2018routes\u2019 directory.<\/p>\n<p>routes\/api_v1.php<br \/>\nroutes\/api_v2.php<\/p>\n<p><strong>PHP:<\/strong><\/p>\n<pre><code>\/\/ routes\/api_v1.php\r\nuse Illuminate\\Support\\Facades\\Route;\r\nRoute::prefix('v1')-&gt;group(function () {\r\nRoute::get('\/users', [App\\Http\\Controllers\\API\\v1\\UserController::class, 'index']);\r\n});\r\n<\/code><\/pre>\n<p><strong>2. Register the Routes:<\/strong><\/p>\n<p>Open \u2018app\/Providers\/RouteServiceProvider.php\u2019 and add the following methods to register the versioned routes.<\/p>\n<p><strong>PHP:<\/strong><\/p>\n<pre><code>public function map()\r\n{\r\n$this-&gt;mapApiRoutes();\r\n$this-&gt;mapApiV1Routes();\r\n$this-&gt;mapApiV2Routes();\r\n}\r\n\r\nprotected function mapApiV1Routes()\r\n{\r\nRoute::middleware('api')\r\n-&gt;namespace($this-&gt;namespace)\r\n-&gt;group(base_path('routes\/api_v1.php'));\r\n}\r\nprotected function mapApiV2Routes()\r\n{\r\nRoute::middleware('api')\r\n-&gt;namespace($this-&gt;namespace)\r\n-&gt;group(base_path('routes\/api_v2.php'));\r\n}\r\n<\/code><\/pre>\n<p><strong>2. Header Versioning:<\/strong><\/p>\n<p>Another way of doing it is to put the API version in the request headers itself. This would keep the URL clean and ensure versioning through HTTP headers.<\/p>\n<p><strong>Implementation<\/strong><\/p>\n<p><strong>1. Middleware:<\/strong><\/p>\n<p>Generate a middleware that will handle the versioning through headers.<\/p>\n<pre><code>\/\/ app\/Http\/Middleware\/ApiVersionMiddleware.php\r\nnamespace App\\Http\\Middleware;\r\n\r\nuse Closure;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass ApiVersionMiddleware\r\n{\r\npublic function handle(Request $request, Closure $next)\r\n{\r\n$version = $request-&gt;header('Accept-Version', 'v1');\r\n$request-&gt;headers-&gt;set('API-Version', $version);\r\n\r\nreturn $next($request);\r\n}\r\n}\r\n<\/code><\/pre>\n<p><strong>2. Register Middleware:<\/strong><\/p>\n<pre><code>Place the middleware in app\/Http\/Kernel.php.\r\n\r\nprotected $routeMiddleware = [\r\n\/\/ other middleware\r\n'api. version' =&gt; \\App\\Http\\Middleware\\ApiVersionMiddleware::class,\r\n];\r\n<\/code><\/pre>\n<p><strong>3. Versioned Routes:<\/strong><\/p>\n<p>Define routes and apply the middleware.<\/p>\n<pre><code>\/\/ routes\/api.php\r\nuse Illuminate\\Support\\Facades\\Route;\r\n\r\nRoute::middleware('api.version')-&gt;group(function () {\r\nRoute::prefix('v1')-&gt;group(function () {\r\nRoute::get('\/users', [App\\Http\\Controllers\\API\\v1\\UserController::class, 'index']);\r\n});\r\n\r\nRoute::prefix('v2')-&gt;group(function () {\r\nRoute::get('\/users', [App\\Http\\Controllers\\API\\v2\\UserController::class, 'index']);\r\n});\r\n});\r\n<\/code><\/pre>\n<p><strong>3. Query Parameter Versioning:<\/strong><\/p>\n<p>API versioning through query parameters is another method, less common though, where the version is specified in the query string.<\/p>\n<p>Implementation<\/p>\n<p><strong>1. Define Routes:<\/strong><\/p>\n<p>Create routes that check for version query parameters.<\/p>\n<pre><code>\/\/ routes\/api.php\r\nuse Illuminate\\Support\\Facades\\Route;\r\n\r\nRoute::group(['prefix' =&gt; 'users'], function () {\r\nRoute::get('\/', function (Request $request) {\r\n$version = $request-&gt;query('version', 'v1');\r\nif ($version == 'v2') {\r\nreturn app()-&gt;call('App\\Http\\Controllers\\API\\v2\\UserController@index');\r\n}\r\nreturn app()-&gt;call('App\\Http\\Controllers\\API\\v1\\UserController@index');\r\n});\r\n});\r\n<\/code><\/pre>\n<p><strong>4. Subdomain Versioning:<\/strong><\/p>\n<p>One can also go for any strategy based on subdomains for versioning. Any version could be hosted at a different subdomain.<\/p>\n<p><strong>Implementation<\/strong><\/p>\n<p><strong>1. Defining Subdomains:<\/strong><\/p>\n<p>Define routes with subdomains.<\/p>\n<pre><code>\/\/ routes\/api.php\r\nuse Illuminate\\Support\\Facades\\Route;\r\n\r\nRoute::domain('v1.api.yourdomain.com')-&gt;group(function () {\r\nRoute::get('\/users', [App\\Http\\Controllers\\API\\v1\\UserController::class, 'index']);\r\n});\r\n\r\nRoute::domain('v2.api.yourdomain.com')-&gt;group(function () {\r\nRoute::get('\/users', [App\\Http\\Controllers\\API\\v2\\UserController::class, 'index']);\r\n});\r\n<\/code><\/pre>\n<h4>Choosing the Right Versioning Technique:<\/h4>\n<p>This depends on various factors, including:<\/p>\n<ul>\n<li><strong>Project Requirements<\/strong>: Consider the kind of needs and constraints of a project.<\/li>\n<li><strong>Client Preferences<\/strong>: Take into account how your clients would want to access different API versions.<\/li>\n<li><strong>Maintenance and Scalability<\/strong>: Choose a method that makes it easier to maintain and scale your API.<\/li>\n<\/ul>\n<p><strong>Conclusion:<\/strong><\/p>\n<p>API versioning becomes, therefore, the critical factor for the long-term prosperity of your Laravel application. It assists in keeping your API stable and supple since it&#8217;s evolving through methodologies such as URL path versioning, header versioning, query parameter versioning, and subdomain versioning.<\/p>\n<p>Whether it is the initial setup or continuing Laravel development services, experts will help you achieve seamless and scalable API solutions. Any business planning to implement the most advanced techniques of API versioning should consider making a difference by hiring dedicated Laravel developers in India or partnering with a Laravel development company in India to acquire relevant expertise and support.<\/p>\n<p>Whether one needs to <a href=\"https:\/\/www.tuvoc.com\/hire-dedicated-laravel-developer\/\"><strong>hire Laravel developers in India<\/strong><\/a> or is looking for Laravel development services, the approach should be towards a reputed Laravel development company to see one&#8217;s application grow with the trend.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>API Versioning is essential for any web application, especially if it is supposed to evolve but has to be backward compatible. It is a chance for the developers to upgrade, add new features, and fix bugs without affecting the existing users. Laravel 11 is integrated with powerful tools and techniques for effective implementation of API [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8399,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124],"tags":[],"class_list":["post-8397","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Best Practices for API Versioning in Laravel 11<\/title>\n<meta name=\"description\" content=\"Explore the key techniques for adding API versioning into your Laravel 11 applications to ensure smooth upgrades and interoperability.\" \/>\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.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Practices for API Versioning in Laravel 11\" \/>\n<meta property=\"og:description\" content=\"Explore the key techniques for adding API versioning into your Laravel 11 applications to ensure smooth upgrades and interoperability.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/\" \/>\n<meta property=\"og:site_name\" content=\"Tuvoc Technologies\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tuvoctechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-26T05:43:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-04T09:05:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tuvoc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Tuvocpvtltd\" \/>\n<meta name=\"twitter:site\" content=\"@Tuvocpvtltd\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tuvoc\" \/>\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.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/\"},\"author\":{\"name\":\"Tuvoc\",\"@id\":\"https:\/\/www.tuvoc.com\/#\/schema\/person\/b27c4814876182cc1be5af37c91f03ae\"},\"headline\":\"API Version Techniques in Laravel 11\",\"datePublished\":\"2024-07-26T05:43:20+00:00\",\"dateModified\":\"2024-11-04T09:05:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/\"},\"wordCount\":579,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tuvoc.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg\",\"articleSection\":[\"App Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/\",\"url\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/\",\"name\":\"Best Practices for API Versioning in Laravel 11\",\"isPartOf\":{\"@id\":\"https:\/\/www.tuvoc.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg\",\"datePublished\":\"2024-07-26T05:43:20+00:00\",\"dateModified\":\"2024-11-04T09:05:52+00:00\",\"description\":\"Explore the key techniques for adding API versioning into your Laravel 11 applications to ensure smooth upgrades and interoperability.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage\",\"url\":\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg\",\"contentUrl\":\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg\",\"width\":1280,\"height\":720,\"caption\":\"Laravel-11\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.tuvoc.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Version Techniques in Laravel 11\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tuvoc.com\/#website\",\"url\":\"https:\/\/www.tuvoc.com\/\",\"name\":\"Tuvoc Technologies\",\"description\":\"Top Secure Web &amp; Mobile Application Development Company\",\"publisher\":{\"@id\":\"https:\/\/www.tuvoc.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tuvoc.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tuvoc.com\/#organization\",\"name\":\"Tuvoc Technologies\",\"url\":\"https:\/\/www.tuvoc.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tuvoc.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2023\/07\/Tuvoc-1.svg\",\"contentUrl\":\"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2023\/07\/Tuvoc-1.svg\",\"width\":1,\"height\":1,\"caption\":\"Tuvoc Technologies\"},\"image\":{\"@id\":\"https:\/\/www.tuvoc.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tuvoctechnologies\/\",\"https:\/\/x.com\/Tuvocpvtltd\",\"https:\/\/www.instagram.com\/tuvocpvtltd\/\",\"https:\/\/www.linkedin.com\/company\/tuvoc-technologies\/people\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tuvoc.com\/#\/schema\/person\/b27c4814876182cc1be5af37c91f03ae\",\"name\":\"Tuvoc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.tuvoc.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5576ead86d20cbeb2afcae38c4b9592d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5576ead86d20cbeb2afcae38c4b9592d?s=96&d=mm&r=g\",\"caption\":\"Tuvoc\"},\"sameAs\":[\"https:\/\/www.tuvoc.com\/\"],\"url\":\"https:\/\/www.tuvoc.com\/author\/tuvoc\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Best Practices for API Versioning in Laravel 11","description":"Explore the key techniques for adding API versioning into your Laravel 11 applications to ensure smooth upgrades and interoperability.","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.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/","og_locale":"en_US","og_type":"article","og_title":"Best Practices for API Versioning in Laravel 11","og_description":"Explore the key techniques for adding API versioning into your Laravel 11 applications to ensure smooth upgrades and interoperability.","og_url":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/","og_site_name":"Tuvoc Technologies","article_publisher":"https:\/\/www.facebook.com\/tuvoctechnologies\/","article_published_time":"2024-07-26T05:43:20+00:00","article_modified_time":"2024-11-04T09:05:52+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg","type":"image\/jpeg"}],"author":"Tuvoc","twitter_card":"summary_large_image","twitter_creator":"@Tuvocpvtltd","twitter_site":"@Tuvocpvtltd","twitter_misc":{"Written by":"Tuvoc","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#article","isPartOf":{"@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/"},"author":{"name":"Tuvoc","@id":"https:\/\/www.tuvoc.com\/#\/schema\/person\/b27c4814876182cc1be5af37c91f03ae"},"headline":"API Version Techniques in Laravel 11","datePublished":"2024-07-26T05:43:20+00:00","dateModified":"2024-11-04T09:05:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/"},"wordCount":579,"commentCount":0,"publisher":{"@id":"https:\/\/www.tuvoc.com\/#organization"},"image":{"@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg","articleSection":["App Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/","url":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/","name":"Best Practices for API Versioning in Laravel 11","isPartOf":{"@id":"https:\/\/www.tuvoc.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage"},"image":{"@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg","datePublished":"2024-07-26T05:43:20+00:00","dateModified":"2024-11-04T09:05:52+00:00","description":"Explore the key techniques for adding API versioning into your Laravel 11 applications to ensure smooth upgrades and interoperability.","breadcrumb":{"@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#primaryimage","url":"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg","contentUrl":"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2024\/07\/API-Version-Techniques-in-Laravel-11-1.jpg","width":1280,"height":720,"caption":"Laravel-11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tuvoc.com\/blog\/api-version-techniques-in-laravel-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tuvoc.com\/"},{"@type":"ListItem","position":2,"name":"API Version Techniques in Laravel 11"}]},{"@type":"WebSite","@id":"https:\/\/www.tuvoc.com\/#website","url":"https:\/\/www.tuvoc.com\/","name":"Tuvoc Technologies","description":"Top Secure Web &amp; Mobile Application Development Company","publisher":{"@id":"https:\/\/www.tuvoc.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tuvoc.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.tuvoc.com\/#organization","name":"Tuvoc Technologies","url":"https:\/\/www.tuvoc.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tuvoc.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2023\/07\/Tuvoc-1.svg","contentUrl":"https:\/\/www.tuvoc.com\/wp-content\/uploads\/2023\/07\/Tuvoc-1.svg","width":1,"height":1,"caption":"Tuvoc Technologies"},"image":{"@id":"https:\/\/www.tuvoc.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tuvoctechnologies\/","https:\/\/x.com\/Tuvocpvtltd","https:\/\/www.instagram.com\/tuvocpvtltd\/","https:\/\/www.linkedin.com\/company\/tuvoc-technologies\/people\/"]},{"@type":"Person","@id":"https:\/\/www.tuvoc.com\/#\/schema\/person\/b27c4814876182cc1be5af37c91f03ae","name":"Tuvoc","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tuvoc.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5576ead86d20cbeb2afcae38c4b9592d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5576ead86d20cbeb2afcae38c4b9592d?s=96&d=mm&r=g","caption":"Tuvoc"},"sameAs":["https:\/\/www.tuvoc.com\/"],"url":"https:\/\/www.tuvoc.com\/author\/tuvoc\/"}]}},"_links":{"self":[{"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/posts\/8397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/comments?post=8397"}],"version-history":[{"count":0,"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/posts\/8397\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/media\/8399"}],"wp:attachment":[{"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/media?parent=8397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/categories?post=8397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tuvoc.com\/wp-json\/wp\/v2\/tags?post=8397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}