Files
Xboard/app/Providers/EventServiceProvider.php
xboard 4fe2f35183 feat: enhance plan validation, traffic system and email verification
- feat: add plan price validation
- feat: make traffic packages stackable
- feat: add commission and invite info to admin order details
- feat: apply email whitelist to verification code API
- fix: subscription link copy compatibility for non-HTTPS
- fix: resolve route editing 500 error in certain cases
- refactor: restructure traffic reset logic
2025-06-22 01:18:38 +08:00

31 lines
605 B
PHP
Executable File

<?php
namespace App\Providers;
use App\Models\User;
use App\Observers\UserObserver;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
class EventServiceProvider extends ServiceProvider
{
/**
* 事件监听器映射
* @var array<string, array<int, class-string>>
*/
protected $listen = [
];
/**
* 注册任何事件
* @return void
*/
public function boot()
{
parent::boot();
// 注册用户模型观察者
User::observe(UserObserver::class);
}
}