如何使用视图在php中回显当前Laravel版本的版本? [英] How can I echo the version of the current Laravel version in php using the view?

查看:79
本文介绍了如何使用视图在php中回显当前Laravel版本的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想在命令提示符(php artisan --version)中查看我的Laravel版本,而是在视图本身中查看.

I don't want to check my Laravel version in the command prompt (php artisan --version), but in the view itself.

赞:

<?php
  $laravel_version = /*laravel version check code*/;
?>

在视图中:

{{ $laravel_version }}

有人知道我该怎么做吗?也许不可能..?

Do anyone know how I can do that? Maybe it isn't possible..?

推荐答案

这是在命令浏览器中查看laravel版本的方法:

This is the way how to see laravel version in command explorer:

php artisan --version

这篇关于如何使用视图在php中回显当前Laravel版本的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆