zoukankan      html  css  js  c++  java
  • How to check Laravel version?

    参考: http://www.elcoderino.com/check-laravel-version/

    1. The easiest way is to simply run artisan command php artisan --version from your CLI and it will return your Laravel version:

    2. You can also browse to and open file vendorlaravelframeworksrcIlluminateFoundationApplication.php. You will 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. You can also place a little code in your routes.php file at the end and then access it like yourdomain.com/laravel-version . This of course assumes that there is nothing in your routes.php file that would not allow the access of /laravel-version route.
    Route::get('laravel-version', function()
    {
    $laravel = app();
    return "Your Laravel version is ".$laravel::VERSION;
    });

  • 相关阅读:
    高精度乘法
    阶乘
    高精度减法
    高精度加法
    曹冲养猪
    采药2
    nginx.conf详解
    系统盘脚本扩容
    IDEA中编写脚本并运行shell脚本
    常用的pdf工具
  • 原文地址:https://www.cnblogs.com/qike/p/5450329.html
Copyright © 2011-2022 走看看