How to know Laravel version and where is it defined?

后端 未结 10 1102
陌清茗
陌清茗 2021-01-30 01:50

How to know Laravel version and where is it defined?

Is Laravel version is defined inside my application directory or somewhere in global server side directory?

相关标签:
10条回答
  • 2021-01-30 02:41

    If you want to know the specific version then you need to check composer.lock file and search For

    "name": "laravel/framework",

    you will find your version in next line

    "version": "v5.7.9",

    0 讨论(0)
  • 2021-01-30 02:44

    You can also check with composer:

    composer show laravel/framework
    
    0 讨论(0)
  • 2021-01-30 02:45

    run php artisan --version from your console.

    The version string is defined here:

    https://github.com/laravel/framework/blob/master/src/Illuminate/Foundation/Application.php

    /**
     * The Laravel framework version.
     *
     * @var string
     */
     const VERSION = '5.5-dev';
    
    0 讨论(0)
  • 2021-01-30 02:45

    Run this command in your project folder location in cmd

    php artisan --version
    
    0 讨论(0)
提交回复
热议问题