| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace App\Module\File\Events;
- use Illuminate\Broadcasting\InteractsWithSockets;
- use Illuminate\Foundation\Events\Dispatchable;
- use Illuminate\Queue\SerializesModels;
- /**
- * 图片删除事件
- */
- class ImageDeletedEvent
- {
- use Dispatchable, InteractsWithSockets, SerializesModels;
- /**
- * 图片ID
- *
- * @var int
- */
- public int $imageId;
- /**
- * 图片路径
- *
- * @var string
- */
- public string $imagePath;
- /**
- * 存储磁盘
- *
- * @var string
- */
- public string $storageDisk;
- /**
- * 创建一个新的事件实例
- *
- * @param int $imageId
- * @param string $imagePath
- * @param string $storageDisk
- * @return void
- */
- public function __construct(int $imageId, string $imagePath, string $storageDisk)
- {
- $this->imageId = $imageId;
- $this->imagePath = $imagePath;
- $this->storageDisk = $storageDisk;
- }
- }
|