Home > PHP Framework > Laravel > body text

Quickly explain two methods of installing Laravel 9!

藏色散人
Release: 2022-02-10 14:44:17
forward
5274 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:wbolt
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!