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

Dirk Jan picture Dirk Jan · Nov 26, 2014 · Viewed 95.6k times · Source

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..?

Answer

Ye Htun Z picture Ye Htun Z · Jun 27, 2016

This is the way how to see laravel version in command explorer:

php artisan --version