blackpenpress

blackpenpress

Member Since 4 Months Ago

Experience Points
2,670
Total
Experience

2,330 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
26
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
2,670 XP
Oct
10
1 week ago
Activity icon

Replied to Laravel Echo, Pusher Not Authenticating On Private Channel

I also have debug log turned on (nothing in logs), pusher server installed, echo and puserh-js installed.

Just to confirm, it's working on a standard:

Echo.channel

Is there a chance this is a bug I can report on Laravel's github? Or just something stupid I've missed?!

Activity icon

Replied to Laravel Echo, Pusher Not Authenticating On Private Channel

Thanks @johnbraun , yep and I have it running watch

Activity icon

Started a new Conversation Laravel Echo, Pusher Not Authenticating On Private Channel

I'm trying to set up a private pusher channel with echo on laravel 6. It won't authorise the user. The best I can do is get the following response from pusher

Pusher : No callbacks on private-App.User.1 for pusher:subscription_error

I've followed the documentation, I've registered:

App\Providers\BroadcastServiceProvider

added the csrf token:

<meta name="csrf-token" content="{{ csrf_token() }}">

adjusted the broadcast routes in the broadcastServiceProvider

Broadcast::routes(["middleware" => ["auth:api"]]);

Required the channels file

require base_path('routes/channels.php');

Here's the channel code, (the log isn't even running)

Broadcast::channel('App.User.{id}', function ($user, $id) {

   Log::info('User failed to auth.');
   return (int) $user->id === (int) $id;
});

Here's the bootstrap.js code, obviously using my genuine key and endpoint (tried with and without the endpoint)

import Echo from 'laravel-echo'

window.Pusher = require('pusher-js');

window.Echo = new Echo({
  broadcaster: 'pusher',
  key: 'mykeyhere111',
  cluster: 'eu',
  authEndpoint: "https://mydomain.test/broadcasting/auth",
  forceTLS: true
});

Pusher.logToConsole = true;

console.log(window.Echo.options);

and my vue listen method:

Echo.private(`App.User.${userId}`)

      .notification( (notification) => {

            console.log(notification)
 })

I've also set the env file

BROADCAST_DRIVER=pusher

PUSHER_APP_ID=akeyhere1
PUSHER_APP_KEY=akeyhere123
PUSHER_APP_SECRET=akeyhere12345
PUSHER_APP_CLUSTER=eu

I'm working on homestead with ssl, also tried on vagrant. The network response for auth is:

Request URL: https://mydomain.test/broadcasting/auth
Request Method: POST
Status Code: 302 

with no response data.

I've spent a couple of days trying to get this working, nothing seems to do it. Any ideas?