Files
WashCar/src/ServiceProvider.php
2021-06-01 11:21:06 +08:00

31 lines
601 B
PHP

<?php
namespace XuanChen\PingAnSdk;
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
class ServiceProvider extends LaravelServiceProvider
{
/**
* Register services.
* @return void
*/
public function register()
{
if ($this->app->runningInConsole()) {
$this->publishes([__DIR__ . '/../config/config.php' => config_path('pingan.php')]);
}
}
/**
* Bootstrap services.
* @return void
*/
public function boot()
{
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'pingan');
}
}