update laravel to v12 and filament to v3.3

This commit is contained in:
xiaomlove
2025-05-03 02:07:59 +07:00
parent 578ec3a6fc
commit 50bbbf16b3
16 changed files with 1124 additions and 1507 deletions

View File

@@ -1327,7 +1327,7 @@ function get_snatch_info($torrentId, $userId)
/**
* 完整的 Laravel 事件, 在 php 端有监听者的需要触发. 同样会执行 publish_model_event()
*/
function fire_event(string $name, \Illuminate\Database\Eloquent\Model $model, \Illuminate\Database\Eloquent\Model $oldModel = null): void
function fire_event(string $name, \Illuminate\Database\Eloquent\Model $model, ?\Illuminate\Database\Eloquent\Model $oldModel = null): void
{
if (!isset(\App\Enums\ModelEventEnum::$eventMaps[$name])) {
throw new \InvalidArgumentException("Event $name is not a valid event enumeration");