How to check Laravel version?

Source: Internet
Author: User

Reference: http://www.elcoderino.com/check-laravel-version/

1. The easiest-to-simply run Artisan command PHP artisan--version from your CLI and it'll return your Laravel ve Rsion:

2. You can also the browse to and open file vendor\laravel\framework\src\illuminate\foundation\application.php. You'll see the version of your Laravel instalation near the top of the class, defined as a constant:
/**
* The Laravel framework version.
*
* @var String
*/
Const VERSION = ' 4.0.10 ';

3. Can also place a little code in your routes.php file at the end and then access it like Yourdomain.com/laravel-vers Ion. This of course assumes, there is nothing in your routes.php file, would not allow the Access of/laravel-version R Oute.
Route::get (' Laravel-version ', function ()
{
$laravel = App ();
Return "Your Laravel version is". $laravel:: Version;
});

How to check Laravel version?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.