Skip to content

Commit 04b9485

Browse files
committed
Add register application command to Service Provider
1 parent 0e3e6e9 commit 04b9485

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/RepositoryServiceProvider.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ public function register()
2323
*/
2424
public function boot()
2525
{
26-
//
26+
$this->registerApplicationCommands();
27+
}
28+
29+
protected function registerApplicationCommands() {
30+
if ($this->app->runningInConsole()) {
31+
$this->commands([
32+
Console\RepositoryMakeCommand::class,
33+
]);
34+
}
2735
}
2836
}

0 commit comments

Comments
 (0)