12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace App\Events;
- use App\Models\PartnerModel;
- use App\Models\User\UserModel;
- use Illuminate\Queue\SerializesModels;
- /**
- * 点赞或取消事件
- * Class ThumbUser
- * @package App\Events
- */
- class ThumbUser extends BaseEvent
- {
- use SerializesModels;
- public $user;
- public $partner;
- /**
- * Create a new event instance.
- *
- * @param UserModel $user
- * @param PartnerModel $partner
- */
- public function __construct(UserModel $user, PartnerModel $partner)
- {
- parent::__construct();
- $this->user = $user;
- $this->partner = $partner;
- }
- }
|