for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GNAHotelSolutions\Weather;
use Illuminate\Support\ServiceProvider;
class WeatherServiceProvider extends ServiceProvider
{
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/config.php' => config_path('weather.php'),
], 'config');
}
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'weather');
$this->app->singleton('weather', function () {
return new Weather;
});