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

前端 未结 13 1110
青春惊慌失措
青春惊慌失措 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:43

    One More way. Just go to the root directory of the project.
    Hit below commands

    php artisan tinker
    App::VERSION()
    

    Tinker is amazing.

提交回复
热议问题