29 lines
670 B
PHP
29 lines
670 B
PHP
<?php
|
|
|
|
namespace Leady\YeePay;
|
|
|
|
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
|
|
|
|
class ServiceProvider extends LaravelServiceProvider
|
|
{
|
|
|
|
public function boot()
|
|
{
|
|
if ($this->app->runningInConsole()) {
|
|
$this->publishes([__DIR__.'/../config/config.php' => config_path('yeepay.php')], 'yeepay');
|
|
$this->loadMigrationsFrom(__DIR__.'/../database/migrations/');
|
|
}
|
|
}
|
|
|
|
/**
|
|
* 部署时加载
|
|
* @Author:<Leady>
|
|
* @Date:2020-11-20T12:30:20+0800
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'yeepay');
|
|
}
|
|
|
|
} |