first commit
This commit is contained in:
29
src/ServiceProvider.php
Normal file
29
src/ServiceProvider.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user