Getting Started / Installation

Docs Getting Started

Installation

Turbo Laravel can be installed via Composer:

bash
composer require hotwired-laravel/turbo-laravel

After installing the package, you may run the turbo:install Artisan command:

bash
php artisan turbo:install

This will add the Turbo.js dependency to your package.json file when you're using Vite and NPM, or to your routes/importmap.php file when it detects that you're using Importmap Laravel. It also publishes some files to your resources/js folder that import Turbo for you.

Note: Turbo used to work with Livewire, but the bridges stopped working somewhere around Livewire v3. There's an open issue to investigate Livewire v3 compatibility. If you're into Livewire and would love to use Turbo in a Livewire app (maybe you want to augment your Livewire & Turbo app with Hotwire Native or something like that), you're welcome to check out the issue and try to bring compatibility back.

If you want application scaffolding for a fresh Laravel app, check out the Hotwire Starter Kit.