refactor: 重构规范部分代码、邮件队列增加失败重试、去除多个支付方式、更新依赖

This commit is contained in:
xboard
2024-04-10 00:51:03 +08:00
parent ec63e05575
commit 4c6c7182e2
50 changed files with 421 additions and 1005 deletions
+5 -3
View File
@@ -4,6 +4,7 @@ namespace App\Providers;
use App\Support\Setting;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Foundation\Application;
class SettingServiceProvider extends ServiceProvider
{
@@ -14,9 +15,11 @@ class SettingServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->bind('setting', function ($app) {
return Setting::fromDatabase(); // 假设 AdminSetting 是您的设置类
$this->app->bind(Setting::class, function (Application $app) {
return new Setting();
});
}
/**
@@ -26,6 +29,5 @@ class SettingServiceProvider extends ServiceProvider
*/
public function boot()
{
//
}
}