| 1 | <?php |
||
| 8 | class NewReply extends Event |
||
| 9 | { |
||
| 10 | use SerializesModels, ShouldNotifyTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * 设置生成的通知类型. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $notification_type = 'new_reply'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new event instance. |
||
| 21 | * |
||
| 22 | * @param Reply $reply |
||
| 23 | * @param $from_user |
||
| 24 | * @param $user_id |
||
| 25 | */ |
||
| 26 | public function __construct(Reply $reply, $from_user, $user_id) |
||
| 30 | } |
||
| 31 |