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, 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...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- Laravel Seeder from CSV File Example
- How to Create Seeder with JSON data in Laravel?
- Laravel Get Next and Previous Record with URL Example
- Laravel Eloquent Group By Year with Sum Example
- Laravel Eloquent When Condition Example
- Laravel Blade Include File If Exists Example
- Laravel Eloquent firstWhere() Example
- Laravel Eloquent whereNull() Query Example
- Laravel Collection Unique | Remove Duplicates from Collection Laravel
- How to Install Botman Chatbot in Laravel?