first commit

This commit is contained in:
2024-04-01 09:54:43 +08:00
commit 899d816bc3
795 changed files with 130040 additions and 0 deletions

29
src/ServiceProvider.php Normal file
View 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');
}
}