mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 11:20:53 +08:00
- Add fix-null mode to ResetTraffic command - Refactor reset logic for better separation of concerns - Update migration to reuse fix functionality
29 lines
528 B
PHP
Executable File
29 lines
528 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\User;
|
|
use App\Observers\UserObserver;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* 事件监听器映射
|
|
* @var array<string, array<int, class-string>>
|
|
*/
|
|
protected $listen = [
|
|
];
|
|
|
|
/**
|
|
* 注册任何事件
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
parent::boot();
|
|
|
|
User::observe(UserObserver::class);
|
|
}
|
|
}
|