add user destroyed/disabled/enabled event

This commit is contained in:
xiaomlove
2024-03-16 15:26:12 +08:00
parent 38ff708a26
commit 0c594058e9
9 changed files with 186 additions and 5 deletions
+7 -1
View File
@@ -3,6 +3,9 @@
namespace App\Console\Commands;
use App\Events\TorrentCreated;
use App\Events\UserDestroyed;
use App\Events\UserDisabled;
use App\Events\UserEnabled;
use Illuminate\Console\Command;
class FireEvent extends Command
@@ -22,7 +25,10 @@ class FireEvent extends Command
protected $description = 'Fire a event, options: --name, --id';
protected array $eventMaps = [
"torrent_created" => TorrentCreated::class
"torrent_created" => TorrentCreated::class,
"user_destroyed" => UserDestroyed::class,
"user_disabled" => UserDisabled::class,
"user_enabled" => UserEnabled::class,
];
/**