I don't want to check my Laravel version in the command prompt (php artisan --version
), but in the view itself.
Like this:
<?php $laravel_version = /*laravel version check code*/; ?>
In the view:
{{ $laravel_version }}
Do anyone know how I can do that? Maybe it isn't possible..?
The latest Laravel version is version 9, which was released on February 8, 2022.
Open the command line terminal on your system. Navigate to your Laravel application directory. Then execute the following PHP artisan command to check the Laravel version. The above output shows that you are running Laravel Framework 7.17.
1. Command to find Laravel Version. Artisan is a powerful command-line interface included with the Laravel. Open command line terminal on your system. Navigate to your Laravel application directory. Then execute the following PHP artisan command to check the Laravel version. php artisan --version Laravel Framework 7.17.2.
Artisan is a powerful command-line interface included with Laravel. Open the command line terminal on your system. Navigate to your Laravel application directory. Then execute the following PHP artisan command to check the Laravel version. The above output shows that you are running Laravel Framework 7.17.2.
View current Laravel version through Blade Templates, there are many ways: Also, the Laravel version installed can be checked in the command line using the following command : Artisan -Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application.
Check PHP Version Using the Command Line (Windows, Linux and macOS) 1. Type the PHP command: php -v 2. The php -v command works on Linux, macOS, Windows, and other supported systems. Its output contains the PHP version...
This is the way how to see laravel version in command explorer:
php artisan --version
$laravel = app(); $version = $laravel::VERSION;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With