1

I used this command for installing Laravel Installer:

composer global require "laravel/installer"

For creating a project I use :

laravel new name --jet

on 8th September laravel 8.x was released, and I'm looking for installing it using the laravel command but I couldn't do it. Instead, a new laravel project was created with Laravel 7.x. I need some help.

Note: I can create a project with Laravel 8.x with this command, but I need to update my required Laravel and make a project with laravel 8.x and jetstream by using the laravel command:

The Error looks like this.....

Click Here to see error

Tarik Manoar
  • 151
  • 3
  • 10

4 Answers4

0

It will work

composer create-project --prefer-dist laravel/laravel laravel
composer require laravel/jetstream
php artisan jetstream:install inertia
albus_severus
  • 3,626
  • 1
  • 13
  • 25
0

/home/example_username/.config/composer go to this folder

and edit composer.json

and put

{
    "require": {
        "laravel/installer": "^4.0"
    }
}

then run composer global update

Kamlesh Paul
  • 11,778
  • 2
  • 20
  • 33
0

Make sure to update your php version to >7.3 and latest Laravel Installer 4.0.3

composer global require laravel/installer
somay
  • 51
  • 1
  • 3
0

This might be helpful: https://laravel-news.com/reminder-update-your-laravel-installer

To see what version you have installed run laravel -V in your console and if it’s less than v4.0 you’ll need to update, and we have a tutorial on doing it, but typically it’s just a matter of running:

composer global require "laravel/installer:^4.0"

user101289
  • 9,888
  • 15
  • 81
  • 148