Laravel is an open-source PHP framework. It was created by Taylor Otwell and it is based on Symfony.
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:
php artisan --version
The output that you would get will look like this:
Laravel Framework 8.12.0
In the example above, we can see that we are Running Laravel
For more information, you can find the official Artisan documentation here.Checkout our latest product - the ultimate tailwindcss page creator 🚀
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:
Once you have the file open, just search for
VERSION. The first constant in the
Application class would be the Laravel version:
/** * The Laravel framework version. * * @var string */ const VERSION = '8.12.0';
Those were just 2 quick was of checking your exact Laravel version.
If you are new to Laravel, I would recommend checking out this Introduction to Laravel 7 free course by DevDojo.
Hope that this helps!