This commit is contained in:
2021-01-19 18:04:07 +08:00
parent 215d2c6772
commit 86ebb43e53
+1 -1
View File
@@ -36,7 +36,7 @@ class DatabasesProviders extends Providers
$event = Snowflake::app()->getEvent();
$event->on(Event::SERVER_WORKER_START, function () {
$attributes = Snowflake::app()->getAttributes();
$attributes->readControllers(CONTROLLER_PATH, 'App\Models', 'models');
$attributes->readControllers(MODEL_PATH, 'App\Models', 'models');
});
}