When you first ship an API, the versioning question usually lands on the "we'll deal with it later" list. Then the old version of the mobile app is in the store, the new version is in review, and the backend has to rename a field. The versioning decision doesn't start when you write code; it starts the moment the first client goes live.
Version in the URL: visible and simple
The most common approach is to put the version in the path: /api/v1/orders. The advantage is obvious: from the browser, with curl, in logs, and in error reports, you can see at a glance which version was called. It's easy to do in Laravel, too; you open a route group with Route::prefix('v1') and keep the controllers under App\Http\Controllers\Api\V1.
The downside is that the version behaves like part of the resource's identity. /v1/orders/42 and /v2/orders/42 are the same order, but two different addresses. On the caching, routing, and documentation side, this duality adds a small but constant overhead.
Version in a header: a clean address, a hidden cost
The second approach keeps the address fixed and carries the version in a header: Accept: application/vnd.firma.v2+json or a custom X-API-Version header. The resource's address never changes, and content negotiation happens through HTTP's own mechanism. In theory, it's more elegant.
The price we've seen in the field: headers are invisible. When a customer says "orders aren't coming through," the address bar tells you nothing. If a proxy or CDN in between ignores the header, the wrong version gets cached. If you use caching, you must remember to send Vary: Accept in the response.

Neither: evolving without releasing a version
The third path is to put off a version number for as long as possible. The rule is simple: you never delete an existing field, you never change its type, you only add new fields. If clients are written to ignore fields they don't recognize, additions break no one. This requires a shared contract:
- New fields are optional, and their default value preserves the old behavior.
- If a field is going to be removed, it is first documented, then announced with a warning header in the response, and only deleted last.
- Client-side JSON parsing doesn't fail on unknown fields; in Dart, only the keys you need are read inside
fromJson. - For enum-like values, the client falls back to a safe default when it encounters a value it doesn't recognize.

The real constraint with mobile clients: old versions never die
You can update a web front end whenever you like; you can't do that with a mobile app. Some users stay on an old version for months. That's why, in mobile projects, we don't leave the versioning decision to the path or the header alone. The app sends its own version number in a separate header with every request, the server logs it, and it can return an "update required" response to clients below a certain threshold. That way you can see from data which old versions are still in use, and decide when to drop support based on records rather than guesswork.
Our preference
In most projects, we keep the major version in the URL and handle small changes without releasing a version, purely by adding. A new major version is opened only when a change that genuinely breaks the contract becomes unavoidable, for example when a resource's model is redesigned from scratch. We set a sunset date for the old version and put it in the documentation and the response headers. Keeping two versions alive forever means quietly doubling your codebase.
One more point: whichever approach you choose, keep the business logic shared across versions in the service layer, not in the controller. If controllers only transform the request and response format, v1 and v2 call the same service, and a bug fixed once is fixed in both versions.
How do you recognize a breaking change? When deciding whether to open a new version, ask this question: can an old client correctly handle the new response without any changes? If the answer is no, the change is breaking. A renamed field, a number turning into a string, a list becoming an object, and stricter validation rules all fall into this group. Contract tests (in Laravel, for example, tests that check whether sample responses match the schema) are the cheapest way to catch these accidents at merge time.
If you want to set up a versioning strategy for your API from the start, or evolve a live system without breaking its clients, reach out through our contact page. The picture from more than 500 projects since 2010 is clear: the earlier the versioning decision is made, the cheaper the later migration turns out to be.