atomjoy/vue

Add Vue 3 to Laravel.

Maintainers

Details

github.com/atomjoy/vue

Source

Issues

Installs: 64

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Language:Vue

v3.4 2024-02-02 16:50 UTC

This package is not auto-updated.

Last update: 2024-09-29 14:23:06 UTC


README

Minimal Vue 3 application with router, i18n, pinia store.

Install package

composer create-project laravel/laravel:^10.0 vue-app
cd vue-app
composer require atomjoy/vue

Overwrite files

Backup first routes and resources directory!

php artisan vendor:publish --tag=vue-config --force

Build and run app

npm install
npm run build
php artisan serve --host=localhost --port=8000

Remove package

The package is no longer needed.

composer remove atomjoy/vue

(DEV) Local repository import

Package directory: packages/atomjoy/vue

Laravel composer.json

{
    "repositories": [{
        "type": "path",
        "url": "packages/atomjoy/vue"
    }],
    "require": {
        "atomjoy/vue": "dev-main"
    },
}

Vue3 npm packages

npm install vue@next
npm install vue-router@4
npm install vue-i18n@9
npm install --save-dev @vitejs/plugin-vue
npm install pinia
npm install @googlemaps/js-api-loader