Member-only story
6 Methods to Check the Laravel Version You’re Using
Knowing your Laravel version is important for debugging, upgrades, or ensuring compatibility with various features. However, there are several methods available to check the Laravel version on different operating systems like macOS, Linux (including Ubuntu), Docker, or WSL.
1. Use php artisan about
The about
command provides not only the Laravel version but also other relevant project information, such as the PHP version, Composer version, and cache drivers. This command is available from Laravel version 9.21 onwards.
php artisan about
Example output
Laravel Version ........................................................ 9.52.16
PHP Version ............................................................. 8.1.30
Composer Version ........................................................ 2.7.7
2. Use php artisan --version
or --version
with any Command
The --version
flag is a simple and reliable method to check the Laravel version, especially if you're using an older version of Laravel where the about
command is not available. This flag works independently and takes…