robertlook
发布于

4 Ways To Get The Laravel Version

This Example very easy-to-find Laravel version. When we create a new project, we get a composer.json file in it, through that composer.json file we can also check the version.

You Can Go composer.json file in the root directory of your project, for example, myApp/composer.json.

https://www.phpcodingstuff.com/blog/4-ways-to-get-the-laravel-version.html

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "laravel/framework": "^8.16.1",  <------- Your Laravel Version
        "laravel/tinker": "^2.0"
    },

Read More: https://www.phpcodingstuff.com/blog/4-ways-to-get-the-laravel-version.html

评论