Skip to content

Installation of dependencies

1. install inertial in laravel

sh
composer require inertiajs/inertia-laravel

2. install npm dependencies copy this fragment of package.json

  • package.json fragment
json
"devDependencies": {
        "@vitejs/plugin-vue": "^4.0.0",
        "axios": "^0.21",
        "laravel-mix": "^6.0.6",
        "laravel-vite-plugin": "^0.7.3",
        "lodash": "^4.17.19",
        "postcss": "^8.1.14",
        "vite": "^4.0.4",
        "vue-loader": "^17.0.1"
    },
    "dependencies": {
        "@inertiajs/inertia": "^0.11.1",
        "@inertiajs/inertia-vue3": "^0.6.0",
        "@inertiajs/vue3": "^1.0.0",
        "vue": "^3.2.36"
 }

then install it in your project

js

npm i

js
public

3 setup