Skip to content

Commit 540a386

Browse files
committed
Small update to improve loading in console.
1 parent 5e0c761 commit 540a386

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Module.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,21 @@ public function register(): void
5858
*/
5959
public function boot(): void
6060
{
61+
$this->loadConfigs();
62+
$this->loadTranslations();
63+
$this->registerListeners();
64+
6165
if ($this->app->runningInConsole()) {
6266
$this->registerCommands();
6367
$this->loadCommandSchedule();
6468
$this->loadMigrations();
69+
$this->registerFactories();
70+
return;
6571
}
6672

6773
$this->loadViews();
68-
$this->loadTranslations();
69-
$this->loadConfigs();
7074
$this->registerPolicies();
71-
$this->registerListeners();
7275
$this->registerMiddleware();
73-
$this->registerFactories();
7476
}
7577

7678
/**

0 commit comments

Comments
 (0)