Home > PHP Framework > Laravel > body text

Teach you to install and update the Laravel installer

藏色散人
Release: 2020-09-15 09:37:22
forward
3269 people have browsed it

The following tutorial column will introduce to you how to install and update the Teach you to install and update the Laravel installer installer. I hope it will be helpful to friends in need!

Installing a new Teach you to install and update the Laravel installer installer using Composer is easy, but what if you already have one installed? The latest Teach you to install and update the Laravel installer installer is critical to your workflow, so you want to make sure you get the latest version. If you have any questions, we are here for you!

Teach you to install and update the Laravel installerIf you haven't heard yet, the Teach you to install and update the Laravel installer team has released the next major version of the

Teach you to install and update the Laravel installer Installer

package, which includes support for Jetstream. The new version also uses the

composer create-project

command behind the scenes instead of downloading an archive from Teach you to install and update the Laravel installer's build server. With this change, Taylor Otwell plans to shut down the build server within a month or two, so you must upgrade your installer as soon as possible.

Update the installerIf you have introduced

laravel/installer

globally in your local machine, you can use the following method to

laravel/installer

Update to the latest version: Use composer require

Update to
    ^4.0
  1. Uninstall and reinstall this package through Composer Update the global
  2. composer.json
  3. file and run
  4. composer update
  5. Composer Require
  6. Pass
composer require

The easiest way to globally update to the next major version is:

composer global require "laravel/installer:^4.0"
Copy after login

As long as there are no dependency conflicts, you should now have the latest 4.x installer. I recommend updating weekly (at least initially) to get merged updates/bug fixes for Teach you to install and update the Laravel installer 8.

If you are requesting version 4.x, you can verify the installation information in the Teach you to install and update the Laravel installer CLI:

laravel --version
Teach you to install and update the Laravel installer Installer 4.0.3
Copy after login
Copy after login
Uninstall and reinstall

If required via

composer require

If you encounter problems updating, you can always uninstall and reinstall via the command line. We have already mentioned this method, which uses

composer

Globally remove the old version and reinstall laravel/installer:

composer global remove laravel/installer 
composer global require laravel/installer
Copy after login
Update the global composer.json fileAnother method is to update the global

composer.json

file. For me, the path to this file is

~/.composer/composer.json

. At the time of writing, the latest release is 3.2.0; however, 4.x tags already exist. You need version 4.x of the installer. Adjust your composer.json file to use

^ 4.0

Version:

{
    "require": {
        "laravel/installer": "^4.0",
    }
}
Copy after login
Return to the command line and run global update:
composer global update
Copy after login
Verify Updates

As mentioned above, no matter which method you use to update the installer, make sure you have the correct version:

laravel --version
Teach you to install and update the Laravel installer Installer 4.0.3
Copy after login
Copy after login

Bonus Points

i Notice that the Teach you to install and update the Laravel installer installer received some updates on the day Teach you to install and update the Laravel installer 8 was released, which included options like

--stack

and

--teams

. The --stack option allows you to configure the stack type as livewire or inertia:

laravel new myapp --jet --stack=inertia --team
Copy after login
Original address: https:// laravel-news.com/updating-the-laravel-installer

Translation address: https://learnku.com/laravel/t/49603

The above is the detailed content of Teach you to install and update the Laravel installer. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!