Skip to content

Commit a3d84cb

Browse files
authored
Merge pull request #38 from larapack/register-commands
Register commands for non-console
2 parents 6b3ce66 + 3ca7d63 commit a3d84cb

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/HooksServiceProvider.php

+6-9
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ public function register()
2121
return;
2222
}
2323

24-
// Registers resources and commands
25-
if ($this->app->runningInConsole()) {
26-
$this->registerCommands();
27-
28-
$this->publishes(
29-
[$configPath => config_path('hooks.php')],
30-
'hooks-config'
31-
);
32-
}
24+
$this->registerCommands();
25+
26+
$this->publishes(
27+
[$configPath => config_path('hooks.php')],
28+
'hooks-config'
29+
);
3330

3431
// Register Hooks system and aliases
3532
$this->app->singleton(Hooks::class, function ($app) {

0 commit comments

Comments
 (0)