Skip to content

Commit 3334579

Browse files
committed
Document the upgrade
1 parent 45d1c75 commit 3334579

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Prologue
2+
* [Upgrade Guide](/docs/{{version}}/upgrade)
13
* Getting Started
24
* [Installation](/docs/{{version}}/installation)
35
* [Overview](/docs/{{version}}/overview)

docs/upgrade.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Upgrade Guide
2+
3+
## Upgrading from 1.x to 2.x
4+
5+
For version 2.x, we're migrating from `hotwired/turbo-laravel` to `hotwired-laravel/turbo-laravel`. That's just so folks don't get confused thinking this is an official Hotwired project, which it's not. Even if you're on `1.x`, it's recommended to migrate to `hotwired-laravel/turbo-laravel`.
6+
7+
First, update the namespaces from the previous package. You can either do it from your IDE by searching for `Tonysm\TurboLaravel` and replacing it with `HotwiredLaravel\TurboLaravel` on your application (make sure you include all folders), or you can run the following command if you're on a macOS or Linux machine:
8+
9+
```bash
10+
find app config resources tests -type f -exec sed -i 's/Tonysm\\TurboLaravel/HotwiredLaravel\\TurboLaravel/g' {} +
11+
```
12+
13+
Next, require the new package and remove the previous one:
14+
15+
```bash
16+
composer require hotwired-laravel/turbo-laravel:2.0.0-beta1
17+
18+
composer remove hotwired/turbo-laravel
19+
```

0 commit comments

Comments
 (0)