0
我一直在試圖調試這個錯誤,因爲昨天沒有運氣..我試圖觸發一個事件,以便它通過Pusher廣播,然後用Echo處理,奇怪的事情是它的工作像9個消息,則它只是停止工作,甚至當它的工作仍然拋出的錯誤,這裏是從工匠廷克錯誤:嘗試觸發事件時的序列化()錯誤
事件:
class ClientAdded extends Event implements ShouldBroadcast
{
use InteractsWithSockets, SerializesModels;
public $client;
/**
* Create a new event instance.
*
* @param Client $client
*/
public function __construct(Client $client)
{
$this->client = $client;
}
/**
* Get the channels the event should broadcast on.
*
* @return Channel|array
*/
public function broadcastOn()
{
return new Channel('clients');
}
}
來自BroadcastingManager.php
的代碼的投擲錯誤:
$this->app->make('queue')->connection($connection)->pushOn(
$queue, BroadcastEvent::class, ['event' => serialize(clone $event)]
);
任何幫助表示讚賞。