Laravel 4 is amazing. It has made development fun again, the same way CodeIgniter did for me a few years ago. Sadly, many developers are abandoning CodeIgniter, and even Ellis Lab seems content to let it fade quietly into the night.
I recently needed to know which version of Laravel 4 was installed on my development machine vs. my staging server for some debugging. I never did find anywhere in the Laravel 4 documentation where I could locate this information, and my Google-Fu was not helping much either. Eventually I did find this information by browsing the core source files, so I thought I would write up a quick blog post for anyone else looking for an answer to this question.
You can look in vendor\laravel\framework\src\Illuminate\Foundation\Application.php.
Near the top of the class you should see the following constant defined:
1 2 3 4 5 6 |
/** * The Laravel framework version. * * @var string */ const VERSION = '4.0.7'; |
This helped me out..
“artisan –version” gives you this
php artisan –version
Thanks, helped me out loads.
Browsing through the ~4000 files of Laravel 4 VS the few hundred files of L3 was a nightmare.
What has Taylor done for a few additional functions?