How to check Laravel version?

news/2024/7/1 18:09:14

参考: 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;
});

转载于:https://www.cnblogs.com/qike/p/5450329.html


http://lihuaxi.xjx100.cn/news/244651.html

相关文章

vue-cli3环境变量与分环境打包

第一步 : 了解环境变量概念 我们可以根目录中的下列文件来指定环境变量: .env # 在所有的环境中被载入 .env.local # 在所有的环境中被载入,但会被 git 忽略 .env.[mode] # 只在指定的模式中被载入 .env.[mode].local # 只在指定…

300道SpringCloud面试题2022(面试题及答案)

SpringCloud面试题及答案(SpringCloud面试题大全带答案) 2022年面试题及答案【最新版】高级SpringCloud面试题大全,发现网上很多SpringCloud面试题及答案整理都没有答案,所以花了很长时间搜集,本套SpringCloud面试题大…

java实现在pdf文档上填充内容

需求: 在合同附件模板上填充内容,生成一个新的合同附件,并可以查看合同附件 思路: 首先在模板文档上设置文本域,根据文本域填充内容,使用itextpdf在pdf上填充内容 1.在pom.xml中加入以下依赖&#xff1…

QTP连接oracle

2019独角兽企业重金招聘Python工程师标准>>> 首先,因为群里很多朋友说QTP连接oracle有点麻烦,我针对于连接oracle做一个完整的教程,希望需要学习的朋友都可以来看一下;具体方法如下: 1、无论是什么语言&am…

Python中is同一性运算符和==相等运算符区别

2019独角兽企业重金招聘Python工程师标准>>> 在区分is和这两种运算符区别之前,需要知道Python中对象包含的三个基本要素,分别是:id(身份标识)、type(数据类型)和value(值)。 比较对象的value(值) 是python标准操作符中的比较操作符…

一个好用 的API 管理工具

大家好,我是磊哥 今天发现了一款国产化的接口测试工具,看它官网中的中文页面,倍感心切,很干净,深度解决了postman 和 swagger 的95%痛点。 这个国产软件就是Eolink,结合了 API 设计、文档管理、自动化测试…

CSS3 @keyframes animate

2019独角兽企业重金招聘Python工程师标准>>> 1.keyframes定义和用法 通过 keyframes 规则,您能够创建动画。 创建动画的原理是,将一套 CSS 样式逐渐变化为另一套样式。 在动画过程中,您能够多次改变这套 CSS 样式。 以百分比来…

页面日期格式化

1.引用<script type"text/javascript" src"/js/xdate.js?version0.001"></script> 2.在页面加载的时候格式化 Date.prototype.Format function (fmt) { var o { "M": this.getMonth() 1, //月份 …