for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace UKTowns;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../config/uk-towns.php' => config_path('uk-towns.php'),
], 'config');
$this->commands([
\UKTowns\Console\ImportTownsToDatabase::class,
\UKTowns\Console\ImportPostcodesToDatabase::class,
]);
}
/**
* @inheritDoc
*/
public function register()
$this->mergeConfigFrom(__DIR__ . '/../config/uk-towns.php', 'uk-towns');