How to quickly check your Laravel version
Have you been in a situation where you need to upgrade your Laravel Application ?
This can be a result of a package that has failed to install or basically you need to update your Laravel version to be compatible with new functionalities that you need to add into your code.
Here are some of the basics on how you can check on your Laravel version.
You can check the Laravel version via an artisan command.
php artisan --version
Using the app() Helper
All Laravel releases have aversion of the framework as constant in the Application.php file. You can access this constant via the app() helper.
app()->version()
To use the above helper you can either display it on your blade view or use tinker command ( php artisan tinker ).
By Using Blade view
Create a blade view and add the following
Version is {{ app()->version() }}
By Using Tinker
Perform the commands as seen below
Congratulations you have successfully learned how to check your Laravel version 🔥 🔥 🔥
Are you looking to learn how to upgrade your Laravel application to the latest version checkout this article
Before you go… Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 👏 below!
Any questions or comments hit me up on
Mail: epmnzava@gmail.com
Twitter: https://twitter.com/epmnzava
Github: https://github.com/dbrax