---
title: "API Versioning in Laravel 11"
url: https://daily.dev/posts/api-versioning-in-laravel-11-qszylfdps
source_url: https://laravel-news.com/api-versioning-in-laravel-11
type: article
source: "Laravel News"
published: 2024-07-17T13:16:14.275Z
updated: 2024-08-23T16:01:46.069Z
tags: ["webdev", "php", "laravel"]
reading_time: 3
upvotes: 128
comments: 3
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# API Versioning in Laravel 11

**[Laravel News](https://daily.dev/sources/ln)** · 3 min read · 128 upvotes · 3 comments

## Summary

Laravel 11 has streamlined its application skeleton by removing unnecessary service providers and default API routes. If you need to set up an API, you can use the `php artisan install:api` command to configure routes and necessary files. For API versioning, you can either add versioned routes in separate files like `routes/api_v1.php` and `routes/api_v2.php`, or configure them directly in the `bootstrap/app.php` file. This article provides step-by-step instructions for both methods to keep your routes organized.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/api-versioning-in-laravel-11>

## Community discussion

Top comments from developers on daily.dev.

**@bossoff** · 1 upvotes

> I need to try this boss. Thank you for sharing.

**@ashleyjohnson** · 0 upvotes

> Good article. This approach also featured on Laracasts on there video series on APIs and versioning 🙂

**@lesaverman** · 0 upvotes

> This was really nice. Quick and simple guide. I learned something new in less than five minutes. Many thanks.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/api-versioning-in-laravel-11-qszylfdps)
