TGViewer
PHP задачи с собеседований PHP задачи с собеседований @phpquiz · 2.88K subscribers
Post #1570 1.51K
laravel pusher не работает почему то отправка

'pusher' => [
'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'),
'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'),
'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
'port' => env('PUSHER_PORT', 443),
'scheme' => env('PUSHER_SCHEME', 'https'),
'encrypted' => true,
'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
],
'client_options' => [
// Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
],
],
Файл конфигурации не трогал просто добавлял в env креды ,на прямую креды работают если использовать

public function sendTestMessage()
{
$options = [
'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => true
];
$pusher = new Pusher(
env('PUSHER_APP_KEY'),
env('PUSHER_APP_SECRET'),
env('PUSHER_APP_ID'),
$options
);

$data['message'] = 'hello world';
$pusher->trigger('test-channel', 'my-event', $data);

return response()->json(['message' => 'Event has been sent!']);
}
Отправляю Event после того как создал заказ но сам event не приходит в pusher Debug Console

Использую laravel 11
More from @phpquiz
  1. Oct 15, 2026👀 Как вы смотрите видео? Разбираете урок, слушаете интервью фоном или начинаете на телефо…
  2. Oct 15, 2026Post #2427
  3. Sep 15, 2026Что будет результатом кода? 👍 — world hello 👾— FiberError 🥰— hellohello world ❤️— hello…
  4. Aug 4, 2026Post #2419
  5. Jul 29, 2026Post #2417
  6. Jul 27, 2026Когда название файла уже само по себе считается техническим долгом 👇
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →