Exploring Laravel 11: Release Date and Exciting New Features
Laravel, known for its elegant syntax and developer-friendly features, is one of the most popular PHP frameworks for building web applications. As your Laravel project evolves, it becomes essential to keep track of the framework's version for compatibility and security reasons. In this guide, we'll explore various methods to effortlessly check the Laravel version within your project.
Utilizing Artisan Command:
Laravel provides a built-in command-line interface called Artisan, which offers a quick way to check the framework's version. Open your terminal or command prompt, navigate to your Laravel project directory, and execute the following command:
php artisan --version
This command will display the Laravel version installed in your project.
Using Helper Method:
check the version using the helper method
app()->version()
Checking Composer Dependencies:
Laravel projects typically include a composer.json
file that lists all dependencies, including the Laravel framework itself. You can inspect this file to find the installed Laravel version. Look for the laravel/framework
package within the require
or require-dev
section:
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"laravel/framework": "^8.0",
// Other dependencies...
}
Hope, it will help you get/retrieve Laravel version.
Subscribe to the Email Newsletter