#development #laravel #php

As of Laravel 6.x, it now follows Semantic Versioning, which essentially means that the major framework releases are released every six months (February and August), and minor and patch releases may be released as often as every week.

With that in mind your Laravel version could often change, so here are a couple of ways for you to find out the exact Laravel version that you have.

Check your Laravel version with artisan

Laravel comes with a command-line interface called Artisan.

Artisan provides a huge number of commands that help you manage and build your Laravel application.

In order to get your exact Laravel version you can just run the following command in the directory of your Laravel project:

1$ php artisan --version

The output that you would get will look like this:

Laravel Framework 10.28.0

In the example above, we can see that we are Running Laravel 10.28.0.

For more information, you can find the official Artisan documentation here.

Check your Laravel version via your text editor

In case you do not have a terminal open, you might want to check your Laravel version via your text editor instead.

To do that, open the following file:

vendor/laravel/framework/src/Illuminate/Foundation/Application.php

Once you have the file open, just search for VERSION. The first constant in the Application class would be the Laravel version:

1/**
2 * The Laravel framework version.
3 *
4 * @var string
5 */
6const VERSION = '10.28.0';

Conclusion

Those were just 2 quick was of checking your exact Laravel version.