From 1fe01a22fbfd4eedc447d9bf7611456a2e4122fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Mar 2021 00:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/DatabasesProviders.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Database/DatabasesProviders.php b/Database/DatabasesProviders.php index da07cef1..87252b75 100644 --- a/Database/DatabasesProviders.php +++ b/Database/DatabasesProviders.php @@ -42,16 +42,9 @@ class DatabasesProviders extends Providers } - /** - * @throws ComponentException - * @throws ReflectionException - * @throws NotFindClassException - * @throws NotFindPropertyException - */ public function scanModel() { - $attributes = Snowflake::app()->getAttributes(); - $attributes->read(MODEL_PATH, 'App\Models', 'models'); + recursive_directory(MODEL_PATH); }