31 lines
601 B
PHP
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');
|
|
}
|
|
|
|
}
|