Skip to content

Commit

Permalink
Document the upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Nov 27, 2023
1 parent 45d1c75 commit 3334579
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Prologue
* [Upgrade Guide](/docs/{{version}}/upgrade)
* Getting Started
* [Installation](/docs/{{version}}/installation)
* [Overview](/docs/{{version}}/overview)
Expand Down
19 changes: 19 additions & 0 deletions docs/upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Upgrade Guide

## Upgrading from 1.x to 2.x

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`.

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:

```bash
find app config resources tests -type f -exec sed -i 's/Tonysm\\TurboLaravel/HotwiredLaravel\\TurboLaravel/g' {} +
```

Next, require the new package and remove the previous one:

```bash
composer require hotwired-laravel/turbo-laravel:2.0.0-beta1

composer remove hotwired/turbo-laravel
```

0 comments on commit 3334579

Please sign in to comment.