瀏覽代碼

menu cache

Jiang qinghua 5 年之前
父節點
當前提交
556fff825b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Models/MenuCache.php

+ 3 - 3
src/Models/MenuCache.php

@@ -16,7 +16,7 @@ trait MenuCache
      */
     protected function remember(\Closure $builder)
     {
-        if (!$this->enable()) {
+        if (!$this->enableCache()) {
             return $builder();
         }
 
@@ -30,7 +30,7 @@ trait MenuCache
      */
     public function destroyCache()
     {
-        if (!$this->enable()) {
+        if (!$this->enableCache()) {
             return null;
         }
 
@@ -40,7 +40,7 @@ trait MenuCache
     /**
      * @return bool
      */
-    public function enable()
+    public function enableCache()
     {
         return config('admin.menu.cache.enable');
     }