How to Check Laravel Version by CLI and File

In this article, We’ll see how to check the laravel version using CLI and file.




Method 1: Check Laravel Version using CLI / Command Prompt

   $ php artisan --version
   Laravel Framework 5.8.37

Method 2: Check Laravel Version using file

Open the below file in 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 = '5.8.37';

That’s it!. Please share your thoughts or suggestions in the comments below.

Leave a Reply

Your email address will not be published. Required fields are marked *