Ver código fonte

get original class

Jiang qinghua 6 anos atrás
pai
commit
cbb964cf7c
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      src/Repositories/Proxy.php

+ 5 - 0
src/Repositories/Proxy.php

@@ -21,6 +21,11 @@ class Proxy implements \Dcat\Admin\Contracts\Repository
         $this->listeners = Repository::getListeners(get_class($repository));
     }
 
+    public function getOriginalClassName()
+    {
+        return get_class($this->repository);
+    }
+
     public function getKeyName()
     {
         return $this->repository->getKeyName();