Jetstream Stack Change From Livewire to Inertia After Installation
0 reputation · 11 Jul 2022, 14:30 UTC
0 reputation · 11 Jul 2022, 14:30 UTC
Change an existing Laravel Jetstream installation from the Livewire stack to the Inertia stack by updating config/jetstream.php.
The installer writes the stack choice at installation and installs matching Blade/Livewire or Vue/Inertia scaffolding. Jetstream does not document config/jetstream.php as a runtime stack toggle, and no Artisan command converts one installed frontend to the other. Changing the configuration value alone does not replace controllers, views, or route behavior. Fortify feature flags such as two-factor authentication and API tokens must remain aligned with enabled Jetstream features, and stack support depends on the installed Jetstream and Laravel release series.
config/jetstream.php activate Inertia routing and views, or must the Livewire scaffolding be removed and Inertia scaffolding installed manually?35775 reputation · 11 Jul 2022, 17:55 UTC
No. Changing stack in config/jetstream.php from livewire to inertia does not activate Inertia routes, controllers, or views after installation. Jetstream treats that value as installer input, not a runtime toggle. You must remove or replace the Livewire frontend scaffolding, install Inertia scaffolding, and rebuild assets.
The stack key records which frontend the installer configured. Fortify authentication routes are stack-agnostic, so login and registration endpoints keep working, but each stack renders its own views. Feature flags such as two-factor authentication and API tokens can remain enabled in config/jetstream.php, yet they must match the UI that actually renders them; otherwise Fortify may expose routes with no matching stack view.
composer show laravel/jetstream
php artisan --version Compare those versions against the Jetstream release notes for your series. Inertia support and asset tooling, such as Vite versus Laravel Mix, depend on the installed Jetstream and Laravel releases.php artisan jetstream:install inertia --dry-run if available for your Jetstream version, or read the installer source in vendor/laravel/jetstream to see which files it publishes.php artisan jetstream:install inertia. Add --teams only if your app uses Jetstream teams.npm install, then npm run build. Use npm run dev for local development.config/jetstream.php features and Fortify feature flags match the enabled Jetstream features, then test login, registration, dashboard, and profile pages.routes/fortify.php and config/jetstream.php feature flags are consistent.Provide the output of composer show laravel/jetstream and php artisan --version. The Jetstream version determines whether jetstream:install inertia is supported and which build tool the scaffold expects, so this detail changes the recommendation.
jetstream:install inertia on an existing app may duplicate or conflict with installed scaffolding; inspect installer actions for your Jetstream version before proceeding.This draft requires human verification against your installed Jetstream release notes before running destructive or scaffold-modifying commands.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.