Php Laravel队列不工作
我正在尝试向一个iOS应用程序发送推送通知,该应用程序在Laravel中有一个队列。我写了下面的代码:Php Laravel队列不工作,php,laravel,queue,Php,Laravel,Queue,我正在尝试向一个iOS应用程序发送推送通知,该应用程序在Laravel中有一个队列。我写了下面的代码: $message = PushNotification::Message($notification,array( 'custom' => array($custom_message), 'category' => 'ACTIONABLE' )); Queue::push(function($job) use ($id) {
$message = PushNotification::Message($notification,array(
'custom' => array($custom_message),
'category' => 'ACTIONABLE'
));
Queue::push(function($job) use ($id)
{
$push = PushNotification::app($appname)
->to($device)
->send($message);
});
然而,这是行不通的。我做错了什么?你解决过这个问题吗?我对队列也有同样的问题。@DanWhite还没有,但我最好的猜测是库还不支持它。