How to Check Laravel Version of a Your Project?

By Hardik Savani April 16, 2024 Category : Laravel

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, laravel 9, laravel 10 and laravel 11 version.

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

Example 1: Check Laravel Version using CMD:

Example:

php artisan --version

Output:

Laravel Framework 9.6.0

Example 2: Check Laravel Version using App Helper:

Example:

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...

Tags :
Shares