ItSolutionStuff.com

How to Check Laravel Version of a Your Project?

By Hardik Savani • April 16, 2024
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: Laravel
Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

Laravel Seeder from CSV File Example

Read Now →

How to Create Seeder with JSON data in Laravel?

Read Now →

Laravel Get Next and Previous Record with URL Example

Read Now →

Laravel Eloquent Group By Year with Sum Example

Read Now →

Laravel Eloquent When Condition Example

Read Now →

Laravel Blade Include File If Exists Example

Read Now →

Laravel Eloquent firstWhere() Example

Read Now →

Laravel Eloquent whereNull() Query Example

Read Now →

Laravel Collection Unique | Remove Duplicates from Collection Laravel

Read Now →

How to Install Botman Chatbot in Laravel?

Read Now →