Browse Source

menu cache

Jiang qinghua 5 years ago
parent
commit
556fff825b
1 changed files with 3 additions and 3 deletions
  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');
     }