<?php

namespace App\Events;

use App\Models\PartnerModel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Support\Facades\Config;

/**
 * 更新卡片事件
 * Class UpdatedPartner
 * @package App\Events
 */
class UpdatedPartner
{
    use Dispatchable;
    use InteractsWithSockets;

    public $model;
    public $stackGlobalConfig;

    /**
     * Create a new event instance.
     *
     * @param  PartnerModel  $model
     */
    public function __construct(PartnerModel $model)
    {
        $this->model = $model;
        $this->stackGlobalConfig = Config::all();
    }
}
