Home > PHP Framework > Laravel > body text

How to check laravel version

WBOY
Release: 2023-05-26 14:54:37
Original
695 people have browsed it

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.

Use terminal commands to view the Laravel version

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

This command will output the currently installed Laravel version number, for example:

Laravel Framework 8.63.0
Copy after login

Here we can see that the currently installed Laravel version is 8.63.0 .

View the version information in the Laravel code

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

In this constant, you can see the current Laravel version Full version number.

Summary

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!

source:php.cn
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