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 vendor\laravel\framework\src\Illuminate\Foundation\Application.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;
});

时间: 2024-10-18 07:18:37

How to check Laravel version?的相关文章

Check .NET Version with Inno Setup

原文  http://www.kynosarges.de/DotNetVersion.html Inno Setup by Jordan Russell is a great installation scripting program, but lacks a built-in function to determine the .NET Framework version installed on the target machine. Fortunately, it’s easy to w

Check Kernel version of J2EE Engine

Two types of the kernel are in SAP NetWeaver Java system: Native Kernel Java Kernel Native Kernel: Native Kernel is executables of java startup framework which are written in C-code, like jcontrol, jstart, jlaunch, sapstartsrv etc. We can update usin

[PowerShell] check PowerShell Version

如果你已经开始在日常的工作中大量使用PowerShell自动化重复工作.建议你使用3.0以上的版本. 可以使用如下命令检测你的PS版本 如需要安装PowerShell,可以参看https://technet.microsoft.com/en-us/library/hh847837.aspx

【转】基于laravel制作APP接口(API)

这篇文章主要介绍了基于laravel制作APP接口(API)的相关资料,需要的朋友可以参考下 前期准备 前言,为什么做以及要做个啥本人姓小名白,不折不扣编程届小白一名,但是自从大一那会儿接触到编程这件奇妙的事情,就完完全全的陷入的程序的世界. 这不,最近又开始折腾APP了,话说现在开发一款APP真是容易,只用JavaScript和一点点HTML+css技术就可以完成.但是做APP的后台就不一样了.开发了APP,想让读点数据进去,那我们就要去开发个后台了. laravel框架,是我最喜欢的PHP框

Make python2.7 use the right version of opencv

Bug: Some day I updated my openCV to the latest version 2.4.13, while recently I found I always get "2.4.8" when I check the version in python2.7. It is wired and anoiying. Also it is normal in C++. This bug is quite similar with this one: openc

Laravel框架学习 -- 安装

环境:mac os  10.10.5; php 5.6.9; 文档参考: http://www.golaravel.com/ 包管理: python  一般使用 pip Laravel 利用 Composer(Composer 中文)来管理其自身的依赖包. 安装: [email protected]:/Users/lpe234  $ brew tap josegonzalez/homebrew-php Warning: Already tapped! [email protected]:/Use

Android sdk version and API level

确定app的系统API level,在mainfest中设置minSdkVersion和targetSdkVersion:对app进行版本控制,在mainfest中设置versionCode和versionName. Supporting Different Platform Versions Tip: In order to provide the best features and functionality across several Android versions, you shou

Laravel学习三:laravel队列使用教程

概述 队列概念:略,不知道的自行解决.(PS:此处laravel version:5.1) 在app服务端开发中,常常会遇到此种情况: 某一个大的任务中,可以分割为1,2,3,4个小任务,其中2的完成依赖1,4的完成依赖2.那么1.2.4可以理解为一个事务,必须依次执行,否则任务无法完成.但是任务3,与1.2.4没有关系,可以单独完成,谁先谁后也没有影响.具体说以下任务就跟三是一个属性:消息推送,邮件发送等等. 消息队列的理解 对于这块,是属于典型的生产者/消费者模型.一个生产者程序制造任务,放

Laravel: 基础篇

一.安装 1)采用一键安装包 http://laravelacademy.org/resources-download 2)Mac 上安装 ----------在Mac上安装composer---------- curl -sS https://getcomposer.org/installer | php 这样就在根目录下下载了composer 为了使用可以在全局中使用我们在下载的composer移动到bin目录下 mv composer.phar /usr/local/bin/compose