Laravel is an popular framework built on PHP programming language. You can find Laravel installation tutorials here. In this tutorial, you will learn options to find version of preinstalled Laravel applications.
There are two ways available to find the version of the Laravel application installed on any system. You can either find it by running a command. If you face any issue with the command line, you can check the Laravel version in the files.
1. Command to find Laravel Version
Artisan is a powerful command-line interface included with Laravel. Open the command line terminal on your system. Navigate to your Laravel application directory. Then execute the following PHP artisan command to check the Laravel version.
php artisan --version
Output:Laravel Framework 7.17.2
The above output shows that you are running Laravel Framework 7.17.2.
2. Check Laravel Version in File
Sometimes you may not have terminal access to the server-hosted Laravel applications. You may not much familiar with the command-line interface. In that case, you can simply view the Laravel version in the following file. WHM/cPanel users can use file managers to access files.
First, navigate to the Laravel web root directory and open the below file.
Then search for the string “VERSION”, which contains the version of the Laravel application.
Checking the Laravel version is a simple process that can be done either through the CLI or by checking the “Application.php” file. By keeping track of the Laravel version, developers can ensure that they are working with the latest updates and features of the framework. We hope this tutorial has been helpful in understanding how to check the Laravel version, and it will assist you in your future development projects.