Home  >  Article  >  PHP Framework  >  How to see laravel version

How to see laravel version

青灯夜游
青灯夜游Original
2021-09-17 15:35:077786browse

How to check the version: 1. Open the cmd command line, use the cd command to switch to the directory where the project is located, and execute the "php artisan -V" command. 2. Open the "composer.json" file and find the "laravel/framework" item. The value of this item is the version number.

How to see laravel version

The operating environment of this tutorial: Windows 7 system, Laravel version 5.4.11, Dell G3 computer.

Method 1 to check the laravel version:

Open the cmd command line and use the cd command to switch to the directory where the project is located,

How to see laravel version

Enter the php srtisan command. This is also a tool artisan often used in laravel in the future, which can help us create controllers, views, etc.

How to see laravel version

Enter php artisan and press Enter and wait for a few seconds, the version and other information will appear. The version information Laravel Framewor is displayed on the first line.

How to see laravel version

Of course there is a simpler command to enter the php artisan command, which is php artisan -V, the V here must be Capitalize, because capitalization is the version command.

How to see laravel version

Method 2 to check laravel version:

There is an app directory in the root directory of your project , env our configuration file, find the composer.json file and open it.

How to see laravel version

In the composer.json file, we manage information such as our expansion packs and project versions. Find the laravel/framework line, and the following value is the current project version.

How to see laravel version

Related recommendations: The latest five Laravel video tutorials

The above is the detailed content of How to see laravel version. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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