php - Pusher doesn't send any signal from the backend ← (PHP, Laravel)

one text

I started using Pusher.com with Laravel and this is my first experience with Pusher by the way. to create a small Chat application, but it seems like pusher doesn't work from the backend this is my code :

$options = [
        'cluster' => 'us2',
        'useTLS' => true
    ];

    $pusher = new Pusher(
        env('PUSHER_APP_KEY'),
        env('PUSHER_APP_SECRET'),
        env('PUSHER_APP_ID'),
        $options
    );

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

FrontEnd

<script src="https://js.pusher.com/6.0/pusher.min.js"></script>
<script>

    // Enable pusher logging - don't include this in production
    Pusher.logToConsole = true;

    var pusher = new Pusher('myhiddenkey', {
    cluster: 'us2'
    });

    var channel = pusher.subscribe('my-channel');
    channel.bind('my-event', function(data) {
    alert(JSON.stringify(data));
    });
</script>

The pusher console works file when i debug on the pusher.com plateform

Source