为什么找不到 broadcasting/auth?
Why is broadcasting/auth not found?
已在 config/app.php
取消评论:
App\Providers\BroadcastServiceProvider::class,
和
Illuminate\Broadcasting\BroadcastServiceProvider::class,
错误:
POST http://pusherapp.local:8888/broadcasting/auth 404 (Not Found)
我正在使用 Mamp 4 和 Laravel 5.5。
试试这个命令
php artisan config:cache
composer require pusher/pusher-php-server "~2.6"
(用户 2.6 因为 3.0 有 class 未找到推送器问题)
composer update
(只是为了确保一切都是最新的)
php artisan config:cache
(再做一次)
如果您使用 Jetstream 和 Livewire 尝试
Broadcast::routes(['middleware' => 'auth:sanctum']);
在 BroadcastServiceProvider.php
中的 boot
方法。
已在 config/app.php
取消评论:
App\Providers\BroadcastServiceProvider::class,
和
Illuminate\Broadcasting\BroadcastServiceProvider::class,
错误:
POST http://pusherapp.local:8888/broadcasting/auth 404 (Not Found)
我正在使用 Mamp 4 和 Laravel 5.5。
试试这个命令
php artisan config:cache
composer require pusher/pusher-php-server "~2.6"
(用户 2.6 因为 3.0 有 class 未找到推送器问题)
composer update
(只是为了确保一切都是最新的)
php artisan config:cache
(再做一次)
如果您使用 Jetstream 和 Livewire 尝试
Broadcast::routes(['middleware' => 'auth:sanctum']);
在 BroadcastServiceProvider.php
中的 boot
方法。