Search code examples
pythonphplaravel

laravel 8 installation failed


i use this command for install laravel + Authentication

composer global require laravel/installer
laravel new laravel--jet

Laravel Installer 4.0.2
but showing this error on cmd:

Which Jetstream stack do you prefer?
  [0] livewire
  [1] inertia
 >

  Aborted.

and i using this commands:

composer create-project --prefer-dist laravel/laravel laravel
composer require laravel/jetstream
php artisan jetstream:install livewire/inertia

but showing this error when run project:

Error
Class 'Inertia\Inertia' not found

and resource>view folder not contain auth files
how to resolve this problem?


Solution

  • you should install (inertia or livewire, not both!)

    php artisan jetstream:install inertia //(inertia or livewire, not both!)