diff --git a/Database/DatabasesProviders.php b/Database/DatabasesProviders.php index 87252b75..cce97215 100644 --- a/Database/DatabasesProviders.php +++ b/Database/DatabasesProviders.php @@ -42,9 +42,12 @@ class DatabasesProviders extends Providers } + /** + * @throws ComponentException + */ public function scanModel() { - recursive_directory(MODEL_PATH); + annotation()->instanceDirectoryFiles(MODEL_PATH); }