Browse Source

方法名称调整

jqh 4 years ago
parent
commit
9bdb16e46c
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/Extend/ServiceProvider.php
  2. 1 1
      src/Support/Context.php

+ 2 - 2
src/Extend/ServiceProvider.php

@@ -440,11 +440,11 @@ abstract class ServiceProvider extends LaravelServiceProvider
     protected function addExceptRoutes()
     {
         if (! empty($this->exceptRoutes['permission'])) {
-            Admin::context()->addMany('permission.except', (array) $this->exceptRoutes['permission']);
+            Admin::context()->merge('permission.except', (array) $this->exceptRoutes['permission']);
         }
 
         if (! empty($this->exceptRoutes['auth'])) {
-            Admin::context()->addMany('auth.except', (array) $this->exceptRoutes['auth']);
+            Admin::context()->merge('auth.except', (array) $this->exceptRoutes['auth']);
         }
     }
 

+ 1 - 1
src/Support/Context.php

@@ -51,7 +51,7 @@ class Context extends Fluent
         return $this->set($key, $results);
     }
 
-    public function addMany($key, array $value)
+    public function merge($key, array $value)
     {
         $results = $this->getArray($key);