Laravel is a popular PHP framework that provides many useful features and tools that make developing web applications easier and more efficient. With Laravel rapidly evolving and constantly being upgraded, it's important to know how to view the current Laravel version as it can help developers better understand the features and updates it contains.
In this article, we will explore how to view the current Laravel version, including using terminal commands and viewing Laravel code.
Laravel has some useful terminal commands built-in, including commands to view the current Laravel version. Execute the following command in the terminal:
php artisan --version
This command will output the currently installed Laravel version number, for example:
Laravel Framework 8.63.0
Here we can see that the currently installed Laravel version is 8.63.0 .
Another way to view the Laravel version number is to view the version information in the code. In order to do this, you need to find the following file: vendor/laravel/framework/src/Illuminate/Foundation/Application.php
. This file is part of the Laravel framework code and contains the version information of the framework.
Open the Application.php
file and find the VERSION
constant, for example:
const VERSION = '8.63.0';
In this constant, you can see the current Laravel version Full version number.
Now, you know how to check the current Laravel version. You can easily get current version details and updates by using the terminal command php artisan --version
or by looking at the VERSION
constant in the Laravel framework code. This information is very important for developers because it allows them to better evaluate Laravel's features and capabilities, and makes development more efficient and orderly.
The above is the detailed content of How to check laravel version. For more information, please follow other related articles on the PHP Chinese website!