News

Laravel Breeze Now With Inertia.js

Published
Laravel Breeze Now With Inertia.js image

Laravel released an Inertia.js option for the Laravel Breeze starter kit you can use to create a minimal starting point for building Laravel applications with authentication:

The --inertia flag offers an optional frontend implementation that scaffolds Inertia.js, Vue, and PHP code you'll need to get started:

# New option to use Intertia
php artisan breeze:install --inertia
npm install
npm run dev
 
# Default Breeze install uses blade templates
php artisan breeze:install

If you'd like to learn more, I'd suggest starting a new Laravel app and installing breeze with the --inertia flag. If you're curious, you can see all the stubs copied into your project during a breeze install. Stubs include configuration for Tailwind, Webpack, Laravel routes, all the JS you'll need for authentication views, and controllers.

You can see the details of this feature by checking out Pull Request #44 to the laravel/breeze repo. It's also worth reemphasizing that all of this scaffolding is optional. Laravel doesn't require that you use Inertia, Tailwind, or any other tool.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Lerd: A Free, Open Source Herd Alternative for Linux and macOS image

Lerd: A Free, Open Source Herd Alternative for Linux and macOS

Read article
Let's Encrypt HTTPS on an IP Address With FrankenPHP image

Let's Encrypt HTTPS on an IP Address With FrankenPHP

Read article
Laravel Chores: Resumable Data Operations and Cleanups image

Laravel Chores: Resumable Data Operations and Cleanups

Read article
NativePHP v4: Build Native iOS and Android UI in Blade image

NativePHP v4: Build Native iOS and Android UI in Blade

Read article
Laravel Lock: Distributed Locks for Models and Routes image

Laravel Lock: Distributed Locks for Models and Routes

Read article
Laravel Image Responses: Serve Resized Images From Routes image

Laravel Image Responses: Serve Resized Images From Routes

Read article