How to Check Laravel Version of a Your Project?

Hi,

Hello all! In this article, we will talk about how to check laravel version of a project. In this article, we will implement a how to check laravel version cmd. you will learn how to check laravel version in controller. We will look at example of laravel check version command. Follow bellow tutorial step of check laravel version php artisan.

Sometimes we need to check laravel version of our application. laravel provides two ways to check laravel application version. first, you can check your laravel version using artisan command and another using app helper. you can use these ways to your laravel 6, laravel 7, laravel 8 and laravel 9 version.

You can see bellow examples to getting current version of laravel app.

Example 1: Check Laravel Version using CMD:

Example:

.medrectangle-3-multi-157{border:none!important;display:block!important;float:none;line-height:0;margin-bottom:15px!important;margin-left:0!important;margin-right:0!important;margin-top:15px!important;max-width:100%!important;min-height:250px;min-width:300px;padding:0;text-align:center!important}

php artisan --version

Output:

Laravel Framework 9.6.0

Example 2: Check Laravel Version using App Helper:

Example:

.medrectangle-4-multi-155{border:none!important;display:block!important;float:none;line-height:0;margin-bottom:15px!important;margin-left:0!important;margin-right:0!important;margin-top:15px!important;max-width:100%!important;min-height:250px;min-width:300px;padding:0;text-align:center!important}

app()->version()

Output:

9.6.0

Example 3: Check Laravel Version in Blade File:

Example:

The current Laravel version is {{ app()->version() }}

I hope it can help you…

Leave a Comment