DEV Community

loading...

how can i check my laravel version

larainfo
Full Stack Developer | Laravel | Livewire | Vue Js Nodejs, tailwind css
Originally published at larainfo.com ・1 min read

In this short tutorials we will see how can we check our laravel version

1)First method by CLI

we can run this command in your project

php artisan tinker

php artisan --version
or
php artisan -v
Enter fullscreen mode Exit fullscreen mode

2) Second Method

we can check laravel version in the composer.json file in root directory.

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "austintoddj/canvas": "^6.0",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.12",
        "laravel/tinker": "^2.5"
    },
}
Enter fullscreen mode Exit fullscreen mode

we can see in composer.json laravel framework version also many library version

"laravel/framework": "^8.12",
Enter fullscreen mode Exit fullscreen mode

visit my website larainfo.com

Read also

3 way to install bootstrap 5 in laravel 8
Laravel php artisan inspire command
Laravel clear cache without using artisan command

Discussion (0)