我遇到以下错误:
Pusher : Couldn't get auth info from your webapp : 404
warn @ pusher.min.js:8
r.onreadystatechange @ pusher.min.js:8
pusher.min.js:8 Pusher : Couldn't get auth info from your webapp : 404
pusher.min.js:8 Pusher : No callbacks on private-test for pusher:subscription_error
任何帮助都将不胜感激
我的通知RealtimeNotification.php有:
public function via($notifiable)
{
return ['broadcast'];
}
public function toBroadcast($notifiable){
return new BroadcastMessage([
'name' => 'John Snow'
]);
}
在我看来,我有一个与我的pusher帐户连接的pusher对象:
var channel = pusher.subscrib
如何在bootstrap.js上在Laravel 8中设置XSRF令牌。
根据该文件,它将被自动处理,但是当我试图访问用户数据时,它会返回未经授权的。
我的bosstrap.js码
window._ = require('lodash');
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF t
我对这个laravel事件非常陌生,所以我不能正确地完成它。
我正在尝试触发一个事件,以便在作业完成时通知用户。因此,我将在作业结束时触发一个事件,如下所示
event(new AmenityUploaded($this->data['property_id']));
我的事件看起来像这样:
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
当我使用公共通道时,推送器成功地发送数据。但是一旦我在channels.php文件中使用了带有正确路由的私有通道,它就不工作了。 use Dispatchable, InteractsWithSockets, SerializesModels;
public $message;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Message $message)
{
$th
我最近钻研了Laravel5.3的Laravel和Pusher的组合。我已经成功地建立了公共渠道,并转向了私人渠道。我很难让Laravel返回一个403从/广播/auth路线,无论我做什么试图授权的行动(直到并包括使用一个简单的返回真实陈述)。有人能告诉我我做错了什么吗?
App/Providers/BroadcastServiceProvider.php:
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Broadcast;
class Broa
我不能让我的活动用拉拉7.x,推手,拉拉-回声。我已经正确设置了一切,但仍然得到401错误。我还将broadcast_driver设置为.env文件中的推动者。如果有人能帮忙,我会感激的。
CommentEvent.php
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcas
我是新推动者,我试图创建一个“谁在线使用它”,我仔细地遵循说明,但我有错误的数据。
我漏掉了什么吗?推动者不返回数据..。
JS:
var socket = new Pusher('MYKEY', {authEndpoint:'php/pusher/auth.php'});
var channel_name = 'presence_channel';
var pchannel = socket.subscribe(channel_name);
pchannel.bind('pusher:subscription_succeeded
我试图使用Pusher Notificaiton系统使用web套接字更新当前页面,其中包含消息"YOu有一个新通知“和指示未读通知数量的钟图标。我注册了事件和侦听器,并实现了ShouldBroadcase并连接了所有东西。但我没有收到任何信息。,除非页面重新加载,否则我是而不是。也有未读通知。
这是我的密码
事件
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Bro