@@ -9,45 +9,19 @@ class ChangelogServiceProvider extends ServiceProvider
9
9
/**
10
10
* Bootstrap the application services.
11
11
*/
12
- public function boot ()
12
+ public function boot (): void
13
13
{
14
- /*
15
- * Optional methods to load your package assets
16
- */
17
- // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'changelog');
18
- // $this->loadViewsFrom(__DIR__.'/../resources/views', 'changelog');
19
- // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
20
- // $this->loadRoutesFrom(__DIR__.'/routes.php');
21
-
22
14
if ($ this ->app ->runningInConsole ()) {
23
15
$ this ->publishes ([
24
16
__DIR__ .'/../config/changelog.php ' => config_path ('changelog.php ' ),
25
17
], 'config ' );
26
-
27
- // Publishing the views.
28
- /*$this->publishes([
29
- __DIR__.'/../resources/views' => resource_path('views/vendor/changelog'),
30
- ], 'views');*/
31
-
32
- // Publishing assets.
33
- /*$this->publishes([
34
- __DIR__.'/../resources/assets' => public_path('vendor/changelog'),
35
- ], 'assets');*/
36
-
37
- // Publishing the translation files.
38
- /*$this->publishes([
39
- __DIR__.'/../resources/lang' => resource_path('lang/vendor/changelog'),
40
- ], 'lang');*/
41
-
42
- // Registering package commands.
43
- // $this->commands([]);
44
18
}
45
19
}
46
20
47
21
/**
48
22
* Register the application services.
49
23
*/
50
- public function register ()
24
+ public function register (): void
51
25
{
52
26
// Automatically apply the package configuration
53
27
$ this ->mergeConfigFrom (__DIR__ .'/../config/changelog.php ' , 'changelog ' );
0 commit comments