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

How to see laravel version

青灯夜游
Release: 2023-01-13 00:40:24
Original
7992 people have browsed it

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!

Related labels:
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
Latest Issues
Composer cannot install laravel
From 1970-01-01 08:00:00
0
0
0
Laravel Space/laravel-backup cannot be installed
From 1970-01-01 08:00:00
0
0
0
Laravel 5.1 Login laravel comes with it No more
From 1970-01-01 08:00:00
0
0
0
Why thinkphp has better performance than laravel?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template