How can I echo the version of the current Laravel version in php using the view?

前端 未结 13 1111
青春惊慌失措
青春惊慌失措 2021-01-30 10:01

I don\'t want to check my Laravel version in the command prompt (php artisan --version), but in the view itself.

Like this:



        
13条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 10:48

    Here is an easiest way to check it manually from the folder

    Go to project folder

    D:\xampp\htdocs\your-project-folder\vendor\laravel\framework\src\Illuminate\Foundation\Application.php

    const VERSION = '5.2.45'; //version of laravel

    This is the another way to check it.

    If you don't want to check using this command php artisan --version

提交回复
热议问题