How to check Laravel version using PHP Artisan CLI OR in source file
Last Modified at 2019-09-12 09:42:26
In Laravel framework, there are two ways available to check laravel version of the any project installed on your server or your local computer. First one is using command line (CLI) and the second method is to navigate to the source file where Laravel version in defined. Before running command to check Laravel version, please make sure that composer is installed on your computer.
1) Check version using command line:
Using command line to check Laravel version name is pretty easy than checking into source files. Open command line on your system and navigate to your project root directory and execute below command.
and the output would be like below screenshot:
2) To check Laravel version in source file:
If you want to check laravel version in your project's source code then you will need to navigate through 'vendor/laravel/framework/src/Illuminate/Foundation/' directory from your project root directory and then search for Application.php file aand open this file in any editor of your choice and search for 'VERSION'. See screenshot below:
I hope, this tutorial will help you.