This package replaces Vue with Svelte and Typescript support in a fresh Laravel Breeze or Laravel Jetstream installation and optionally adds Eslint, Prettier, and Cypress or Playwright.
I only intended Laravel Svelte for fresh Laravel Breeze or Laravel Jetstream installations with Inertia and Vue. Because of this, I will continue implementing changes made to Breeze and Jetstream into this package to remain in sync with Laravel installations.
This package will respect and keep in place any of the options provided to or excluded from your installation, such as dark mode, Pest, SSR and Teams support.
However, two opinionated changes occur to your Laravel installation:
First, install a fresh copy of Laravel Breeze or Laravel Jetstream with Inertia and Vue.
composer create-project laravel/laravel example-app
cd example-app
composer require laravel/breeze --dev
php artisan breeze:install vue [--dark] [--pest] [--ssr] [--typescript]
composer create-project laravel/laravel example-app
cd example-app
composer require laravel/jetstream
php artisan jetstream:install inertia [--dark] [--teams] [--api] [--verification] [--pest] [--ssr]
Then, install Laravel Svelte via Composer
composer require stevedobe/laravel-svelte
If you wish to know exactly what this package changes to a Laravel installation, create a Git repository for your project now with an initial commit.
You may publish Laravel Svelte's configuration file to config/laravel-svelte.php and modify it as needed. I can only think of two reasons why you may want to do this:
Your Laravel installation is not running Breeze 2.2 or Jetstream 5.3.
You want to control the versions of the installed Node packages. These are listed in the configuration file.
php artisan vendor:publish --provider="SteveDobe\LaravelSvelte\LaravelSvelteServiceProvider"
To swap out Vue with Svelte, run the following command. You will be prompted to optionally install Eslint, Prettier and Cypress or Playwright.
php artisan stevedobe:swap-vue-with-svelte
Please see the changelog for more information on what has changed recently.
Please see contributing.md for details.
If you discover any security-related issues, please email steve.dobe@webtend.com.au instead of using the issue tracker.
MIT. Please see the license file for more information.