From bfc576b4379c177258eb65dee5a8b7bde44806c0 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Fri, 22 May 2020 14:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=89=8D=E7=BC=80=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/Utils.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extend/catcher/Utils.php b/extend/catcher/Utils.php index f882768..c2ff07b 100644 --- a/extend/catcher/Utils.php +++ b/extend/catcher/Utils.php @@ -107,4 +107,15 @@ class Utils return [$module, $controllerName, $action]; } + + /** + * 表前缀 + * + * @time 2020年05月22日 + * @return mixed + */ + public function tablePrefix() + { + return \config('database.connections.mysql.prefix'); + } }