How to Check Laravel Version through CLI / command prompt and file

There are 2 easy ways to find out what version of laravel you are using. They are by running php artisian commands on CLI or checking the files.

Method 1: Check Laravel Version using CLI / Command Prompt

$ php artisan --version
Laravel Framework 7.12.0

The tells us that the Laravel Framework version we are currently using is 7.11.0
Alternative to the above command is

$ php artisan -V
Laravel Framework 7.12.0

Method 2: Check Laravel Version using file

Open the following file using command line or any editor
/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
In this file you will find the following

    /**
     * The Laravel framework version.
     *
     * @var string
     */
    const VERSION = '7.12.0';

Related posts:

  1. How to remove WordPress version number
  2. How to remove WordPress version parameter from JS and CSS files
  3. How to hide PHP version in the HTTP Headers
  4. How to hide Nginx version number in headers and errors pages

Leave a Reply