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.
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,
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.
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.
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.
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.
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.
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!