We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5167ee6 commit 831b374Copy full SHA for 831b374
src/DatabaseRepositoryServiceProvider.php
@@ -20,9 +20,15 @@
20
class DatabaseRepositoryServiceProvider extends ServiceProvider
21
{
22
/**
23
- * Bootstrap the application events.
+ * Register the service provider.
24
*/
25
- public function boot()
+ public function register(): void
26
+ {
27
+ $this->offerPublishing();
28
+ $this->registerCommands();
29
+ }
30
+
31
+ public function offerPublishing(): void
32
33
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
34
$this->publishes([
@@ -33,14 +39,6 @@ public function boot()
39
}
40
35
41
36
- /**
37
- * Register the service provider.
38
- */
- public function register(): void
- {
- $this->registerCommands();
42
- }
43
-
44
45
* Register custom commands.
46
0 commit comments