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 9ce8d4a commit 0a4cde6Copy full SHA for 0a4cde6
src/WeatherServiceProvider.php
@@ -7,17 +7,19 @@
7
class WeatherServiceProvider extends ServiceProvider {
8
9
public function boot() {
10
-
11
- $this->publishes(
12
- [
13
- __DIR__ . '/../config/weather.php' => config_path('weather.php')
14
- ],
15
- 'weather-config'
16
- );
+ if ($this->app->runningInConsole()) {
+ $this->publishes(
+ [
+ __DIR__ . '/../config/weather.php' => config_path('weather.php')
+ ],
+ 'weather-config'
+ );
17
+ }
18
}
19
20
public function register() {
21
$this->mergeConfigFrom(__DIR__ . '/../config/weather.php', 'weather');
22
+ $this->registerFacades();
23
24
25
/**
@@ -32,4 +34,4 @@ function ($app) {
32
34
return new Weather();
33
35
});
36
-}
37
+}
0 commit comments