What Version of Laravel 4 do I have Installed? – Kyle Noland

Tue10

What Version of Laravel 4 do I have Installed?

Posted by on Sep 10, 2013 in Blog | 0 comments

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';