sairum

sairum

Member Since 3 Years Ago

Experience Points
640
Total
Experience

4,360 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
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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
640 XP
May
18
2 weeks ago
Activity icon

Replied to Laravel Websockets Beyondcode

@ignisrzeus the thing is i am running it on local and i am facing this issue on local environment where i am not using any ssl or something i just want it hit on ws which is http instead of wss which is https.

Activity icon

Replied to Laravel Websockets Beyondcode

@ignisrzeus i created vhosts and run on it still getting the same error i don't know why it is hitting wss instead of ws

@alexsun yes i am using it right

Activity icon

Replied to Laravel Websockets Beyondcode

yes i also tried to visit my non secure url like home page but still getting the same error over there aswell, currently it is on localhost and running it via php artisan serve

Activity icon

Replied to Laravel Websockets Beyondcode

i can successfully create the event with this url localhost:8000/laravel-webosckets

Connection id 907383344.959973794 sending message {"event":"log-message","channel":"private-websockets-dashboard-api-message","data":{"type":"api-message","time":"10:12:00","details":"Channel: test, Event: test","data":"{\"name\":\"sairum\"}"}}

but i am getting this error on console when hit the other routes

WebSocket connection to 'wss://localhost/app/somekey?protocol=7&client=js&version=6.0.2&flash=false' failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID

and yes my routes are in middleware group like this

Route::group(
    ['middleware' => ['role:admin']],
    function () {
Activity icon

Replied to Laravel Websockets Beyondcode

Yes i am using the same code you mentioned and i have done everything which doc said, i am not using api so for that token i am using this is it ok ?

let token = document.head.querySelector('meta[name="csrf-token"]');

if (token) {
    window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
} else {
    console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
}
Activity icon

Replied to Laravel Websockets Beyondcode

Firstly Thanks for your help, I implement the header but same error i also hit this url yoururl.com/laravel-webosckets and then i connect and it says Channels current state is connected also in cmd where sockets is serve i am getting this

someid: connection id 486770070.284226807 received message: {"event":"pusher:ping","data":{}}.Connection id 486770070.284226807 sending message {"event":"pusher:pong"}

Activity icon

Replied to Laravel Websockets Beyondcode

yes all my routes are secured but i didn't implement anything right now i just uncommented the echo code in boostrap.js and implement all the necessary code to work the websockets.

yes i am running the php artisan websockets:serve

Activity icon

Started a new Conversation Laravel Websockets Beyondcode

I am using laravel version 5.7 and beyondcode\laravel-websockets package v1.3 the problem I am facing right now is when I am running it on localhost I am getting this error

WebSocket connection to 'wss://localhost/app/somekey?protocol=7&client=js&version=6.0.2&flash=false' failed: Error in connection establishment: net::ERR_CERT_AUTHORITY_INVALID

I have changed encrypted to false in bootsrap.js still it connects to wss instead of ws

bootstrap.js

import Echo from 'laravel-echo'

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

window.Echo = new Echo({
    broadcaster: 'pusher',
    key: process.env.MIX_PUSHER_APP_KEY,
    cluster: process.env.MIX_PUSHER_APP_CLUSTER,
    encrypted: false,
    wsHost: window.location.hostname,
    wsPort: 6001,
    disableStats: true
});

broadcasting.php config

'connections' => [

        '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'),
                'encrypted' => false,
                'host' => '127.0.0.1',
                'port' => 6001,
                'scheme' => 'http'
            ],
        ],
Mar
12
2 months ago
Activity icon

Started a new Conversation Facebook Lead Gen Webhook Not Triggering

  1. I connect webhook and test the leadgen, I successfully received the test data but when i try to create the lead through Lead Ads Testing Tool my webhook callback url not triggered, I tracked the status of lead and it's a success 200. I tried on dev mode as well as on live mode but same issue,

Note: I didn't process my app review is this causing this issue?

  1. secondly can i get the lead of all the pages i have created by a single facebook app?
Dec
15
5 months ago
Activity icon

Started a new Conversation Stripe Subscription Help

If subscription renewal is denied from stripe for any reason like insufficient fund or card goes expired etc then our system make that person to trial version again i am doing via stripe invoice.payment_failed event if this event triggered from stripe then i am turning that user account to trial package but i have an issue in this if that person is try to upgrade the plan to other and in this case payment failed for xyz reason then stripe also trigger the same event payment invoice.payment_failed in which case i am turning that user to trial also there is no significant difference in both case i have to implement this if user is upgrading the package and that failed then that user back to whatever package they have previously how can i handle this scenario?