Home > PHP Framework > Laravel > Where can I see the laravel version number?

Where can I see the laravel version number?

PHPz
Release: 2023-04-12 09:50:00
Original
770 people have browsed it

Where can I check the Laravel version number? This is a question that many Laravel developers need to know. In this article, we will give you a detailed introduction on how to check the version number of Laravel. Laravel is a popular PHP development framework that is loved by developers due to its ease of learning and rapid development. The framework is updated frequently, and the version number is also updated frequently, so it is very necessary to check the version number.

To check the version number of Laravel, you can use the following methods:

Method 1: Check the composer.lock file

After laravel is installed, you will be in the project I saw a file named composer.lock in the root directory. This file records the version number information of all dependencies of the running project. Find the version number of the laravel framework in this file:

    "name": "laravel/laravel",
    "version": "v6.20.14",
Copy after login

You can see that the version number of laravel is v6.20.14.

Method 2: View the composer.json file

In the root directory of the project, you can also find a file named composer.json. This file is the main configuration file for the Laravel project. In this file, you can find the version number of Laravel:

    "require": {
        "php": "^7.2.5",
        "fideloper/proxy": "^4.4",
        "laravel/framework": "^8.12",
        "laravel/tinker": "^2.5"
    },
Copy after login

You can see that the value of "laravel/framework" starts in "require" It is the version number of Laravel, currently it is 8.12.

Method 3: Check the version number through the command

If you have used Laravel, you will find that laravel comes with a artisan command line tool, which provides many development Convenient way to perform tasks. You can use the following command to check the version number of Laravel:

php artisan --version
Copy after login

This command will output results similar to the following:

Laravel Framework 7.24.0
Copy after login

In the above results, 7.24.0 The part is the version number of Laravel.

To sum up, it is very simple to check the version number of Laravel. You can find it by looking at the composer.lock or composer.json file, or using the php artisan --version command. Therefore, you should have this knowledge both during development and when solving problems.

The above is the detailed content of Where can I see the laravel version number?. 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