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
In this file you will find the following

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

Leave a Reply