Let’s have a look at several ways you can check and get the Laravel version your app is using.
Check Laravel version via CLI
Check Laravel version via PHP
Using Application::VERSION
is faster because we just access the Class’ constant variable.
Check Laravel version via Blade
Additionally, you can also find the Laravel version inside composer.lock
, but this approach is often out of hand.
Happy coding
Let me know what you think about this article through comments below, or on Twitter at @pelu_carol.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.