Search code examples
laravelvue.jsvuejs2inertiajslaravel-jetstream

Install Laravel Jetstream with Vue JS 2


Jetstream by default installs inertia with Vue JS version 3 even though we can select the inertia version when just installing Inertia.

Few of the Vue plugins I have planned to use still do not have Vue3 support. So is it possible to install Jetstream with Vue JS 2?


Solution

  • yes, you can use old jetstream version. jetstream version 2.2.0 support with vue3 before that it will support vue2. But it might contain some bugs. To install jetstream with vue2 run comment on terminal

    laravel new hello
    cd hello
    

    edit composer.json "laravel/jetstream": "^2.1", then run composer install; php artisan jetstream:install inertia on terminal. And finally run npm install; npm run dev; php artisan migrate on terminal.