Sometimes when you work on a project (laravel project), you didn't know exactly what laravel version you currently working on. In this article i will show you how to check laravel version.
To find out/check what laravel version you have is quite easy, you can use laravel artisan command, there is a command for showing laravel version.
php artisan --version
What if i want to know from inside php? guess what...you can also shows your laravel version from inside the php/laravel code itself, with this code:
<?php
$laravel = app();
echo $laravel::VERSION;
The secret behind this can be found on ../laravel/framework/Illuminate/Foundation/Application.php, there is a constant variable called VERSION, that's your laravel version.
1 comments:
EmoticonEmoticon