A simple way to start your vue-laravel-spa projects.
npm create v-kit-spa@latest
Apache/Nginx
Mysql
Php
Node
frontend and backend are in a single folder, united via configuration.
Version & Type | Features | Prerequisite |
---|---|---|
vue 2 - laravel 8 |
runs in webpack , Development Ready |
php v7.4 && node v18^ |
vue 3 - laravel 8 |
runs in webpack , Development Ready |
php v7.4 && node v18^ |
vue 3 - laravel 9 |
runs in vite , Development Ready, Developer Friendly |
php v8.0 && node v18^ |
vue 3 - laravel 10 |
runs in vite , Development Ready, Developer Friendly |
php v8.1 && node v18^ |
vue 3 - laravel 11 |
runs in vite , Development Ready, Developer Friendly |
php v8.2 - v8.3 && node v18^ |
/
└── Project folder/
├── *Laravel and Vue files are combined here*
└── README.md
bundled and optimized in
webpack
🕸️
Commands | Action |
---|---|
yarn install |
Installs node dependencies |
composer install |
Installs composer dependencies |
copy .env.example .env |
Generates a .env file from an example |
php artisan key:generate |
Generates a key for .env file |
npm run artisan-watch |
Run both php artisan serve and yarn watch |
http://127.0.0.1:8000/ |
Visit your app, Enjoy! 🎉🎉 |
bundled and optimized in
webpack
🕸️
Commands | Action |
---|---|
yarn install |
Installs node dependencies |
composer install |
Installs composer dependencies |
copy .env.example .env |
Generates a .env file from an example |
php artisan key:generate |
Generates a key for .env file |
npm run artisan-watch |
Run both php artisan serve and yarn watch |
http://127.0.0.1:8081/ |
Visit your app, Enjoy! 🎉🎉 |
bundled and optimized in
vite
⚡
Commands | Action |
---|---|
yarn install |
Installs node dependencies |
composer install |
Installs composer dependencies |
copy .env.example .env |
Generates a .env file from an example |
php artisan key:generate |
Generates a key for .env file |
npm run artisan-dev |
Run both php artisan serve and yarn dev |
http://127.0.0.1:8000/ |
Visit your app, Enjoy! 🎉🎉 |
bundled and optimized in
vite
⚡
Commands | Action |
---|---|
yarn install |
Installs node dependencies |
composer install |
Installs composer dependencies |
copy .env.example .env |
Generates a .env file from an example |
php artisan key:generate |
Generates a key for .env file |
npm run artisan-dev |
Run both php artisan serve and yarn dev |
http://127.0.0.1:8000/ |
Visit your app, Enjoy! 🎉🎉 |
bundled and optimized in
vite
⚡
Commands | Action |
---|---|
yarn install |
Installs node dependencies |
composer install |
Installs composer dependencies |
copy .env.example .env |
Generates a .env file from an example |
php artisan key:generate |
Generates a key for .env file |
php artisan migrate |
Create a Sessions table |
npm run artisan-dev |
Run both php artisan serve and yarn dev |
http://127.0.0.1:8000/ |
Visit your app, Enjoy! 🎉🎉 |
npm run build |
Deploy! 🎉🎉 |
Read full docs here.
Have an idea? Found a bug? See how to contribute.
Thanks to:
- RGienz for contributing and maintaining vuejs3 - laravel8 👏
Free and Open Source Under MIT License © 2024-PRESENT Shuashuaa