mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-27 22:47:23 +08:00
improve paid torrent + hit and run
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Enums;
|
||||
|
||||
use App\Events\NewsCreated;
|
||||
use App\Events\SnatchedUpdated;
|
||||
use App\Events\TorrentCreated;
|
||||
use App\Events\TorrentDeleted;
|
||||
use App\Events\TorrentUpdated;
|
||||
@@ -12,6 +13,7 @@ use App\Events\UserDisabled;
|
||||
use App\Events\UserEnabled;
|
||||
use App\Events\UserUpdated;
|
||||
use App\Models\News;
|
||||
use App\Models\Snatch;
|
||||
use App\Models\Torrent;
|
||||
use App\Models\User;
|
||||
|
||||
@@ -28,6 +30,8 @@ final class ModelEventEnum {
|
||||
|
||||
const NEWS_CREATED = 'news_created';
|
||||
|
||||
const SNATCHED_UPDATED = 'snatched_updated';
|
||||
|
||||
public static array $eventMaps = [
|
||||
self::TORRENT_CREATED => ['event' => TorrentCreated::class, 'model' => Torrent::class],
|
||||
self::TORRENT_UPDATED => ['event' => TorrentUpdated::class, 'model' => Torrent::class],
|
||||
@@ -40,5 +44,7 @@ final class ModelEventEnum {
|
||||
self::USER_DISABLED => ['event' => UserDisabled::class, 'model' => User::class],
|
||||
|
||||
self::NEWS_CREATED => ['event' => NewsCreated::class, 'model' => News::class],
|
||||
|
||||
self::SNATCHED_UPDATED => ['event' => SnatchedUpdated::class, 'model' => Snatch::class],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user