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

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

    There are different ways of coding, I found multiple ways to current version find in Laravel

    View current Laravel version through Blade Templates, there are many ways:

    First way

    {{ App::VERSION() }} 
    

    Second way

    
    

    Third way

    
    

    Also, the Laravel version installed can be checked in the command line using the following command :

    php artisan --version
    

提交回复
热议问题