Home  >  Article  >  PHP Framework  >  Quickly explain two methods of installing Laravel 9!

Quickly explain two methods of installing Laravel 9!

藏色散人
藏色散人forward
2022-02-10 14:41:305278browse

How to install Laravel 9

If you want to start using Laravel 9 for development and testing, you can easily install and run it on your local machine.

Laravel 9 supports PHP 8, so if you plan to test it, be sure to check your PHP version or start a fresh installation.

You can discover more details about this release via Packagist. [Recommended: laravel video tutorial]

To use composer to install Laravel 9, please run the following command:

composer create-project --prefer-dist laravel/laravel laravel-9-dev dev-develop

The above command will laravel- 9-dev creates a new Laravel project called , using the latest Laravel 9, which as we know is still under development (hence dev-develop).

The second method is to create a new Laravel project using the Laravel global CLI and choose to create your new project from the dev branch.

Enter the following command to create a new Laravel 9 project:

laravel new laravel-9-dev --dev

Now that you have Laravel 9 installed, you can check the version by going into the new directory (laravel-dev) and executing the artisan command:

cd laravel-9-dev
php artisan --version

It should show you the development version of Laravel 9!

Related recommendations: "Laravel 9 is officially released, a list of new features!

The above is the detailed content of Quickly explain two methods of installing Laravel 9!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:wbolt. If there is any infringement, please contact admin@php.cn delete