Add commit SHA at status page

This commit is contained in:
Pig Fang 2019-08-31 09:42:29 +08:00
parent cfa552157f
commit 347399c944
3 changed files with 3 additions and 0 deletions

View File

@ -376,6 +376,7 @@ class AdminController extends Controller
'version' => config('app.version'),
'env' => config('app.env'),
'debug' => config('app.debug') ? trans('general.yes') : trans('general.no'),
'commit' => Str::limit(app('webpack')->commit, 10, ''),
'laravel' => app()->version(),
],
'server' => [

View File

@ -92,6 +92,7 @@ status:
version: Version
env: Application Environment
debug: Debugging or Not?
commit: Commit
laravel: Laravel Version
server:
name: Server

View File

@ -92,6 +92,7 @@ status:
version: 版本
env: 应用环境
debug: 是否处于调试状态
commit: 提交
laravel: Laravel 版本
server:
name: 服务器