Mubeenali

Mubeenali

Member Since 3 Years Ago

Experience Points
4,530
Total
Experience

470 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
23
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
4,530 XP
Aug
11
1 month ago
Activity icon

Replied to Laravel-echo-server On Production Not Working Error:Failed To Load Resource: Net::ERR_CERT_AUTHORITY_INVALID

@sinnbeck m-not-getting-any-error-if-i-check-with-your-given-ssl-server-test..

Yes,files-in-the-directories-specified-in-config. no,error-i-get-if-i-run-ssl..

Aug
10
1 month ago
Activity icon

Replied to Laravel-echo-server On Production Not Working Error:Failed To Load Resource: Net::ERR_CERT_AUTHORITY_INVALID

No,we-have-purchased-this-and-there-are-2-cert-files-inside-my-cpanel-i-dnt-know-whic-one-is-actual-and-will-do-the-job.maybe-m-giving-correct-path-but-problem-with-laravel-echo-server.?

Activity icon

Replied to Laravel-echo-server On Production Not Working Error:Failed To Load Resource: Net::ERR_CERT_AUTHORITY_INVALID

-i-have-given-the-ssl-cert-file-path-then-why-it-is-not-working..can-this-be-a-wrong-path-m-giving--how-can-i-find-the-ssl-cert-and-key-file-path??

Activity icon

Started a new Conversation Laravel-echo-server On Production Not Working Error:Failed To Load Resource: Net::ERR_CERT_AUTHORITY_INVALID

Getting Error in Console:

Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID
:6001/socket.io/?EIO=3&transport=polling&t=NFSQxVT:1

Laravel-echo-server.json:

{
	"authHost": "https://example.com/",
	"authEndpoint": "/broadcasting/auth",
	"clients": [
		{
			"appId": "************",
			"key": "*********************"
		}
	],
	"database": "redis",
	"databaseConfig": {
		 "redis": {
        "port": "6379",
        "host": "0.0.0.0"
    },
		"sqlite": {
			"databasePath": "/database/laravel-echo-server.sqlite"
		}
	},
	"devMode": false,
	"host": "0.0.0.0",
	"port": "6001",
	"protocol": "https",
	"socketio": {},
	"secureOptions": 67108864,
	"sslCertPath": "/home/ssl/certs/mycert.crt",
	"sslKeyPath": "/home/ssl/keys/my.key",
	"verifyAuthPath": true,
    "verifyAuthServer": false,
	"sslCertChainPath": "",
	"sslPassphrase": "",
	"subscribers": {
		"http": true,
		"redis": true
	},
	"apiOriginAllow": {
		"allowCors": true,
		"allowOrigin": "https://example.com:6001",
		"allowMethods": "GET, POST",
		"allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
	}
}

Maybe,m giving wrong crt file path.?please help me how to configure it with SSL?

Activity icon

Replied to How To Start Laravel-echo-server On Live Server?

oho,m-talking-about-to-run-it-on-live-server.....m-not-talking-about-localhost-working...

Activity icon

Replied to 419 Page Expired

@timtom you-need-to-check-either-you-are-recieveing-csrf-cookied-or-not---if-you-are-recieving-then-you-need-to-delete-it-and-refresh-the-page-it-will-solve-the-problem..

Activity icon

Replied to 419 Page Expired

@snapey please-help-me-in-this-ohhh-sorry-i-forget-let-me-mark-as-solved..please-help-in-this-too:

https://laracasts.com/discuss/channels/laravel/laravel-redis-socket-io-connection-refused-error-on-live-vps-server

Aug
09
1 month ago
Aug
08
1 month ago
Activity icon

Replied to How To Start Laravel-echo-server On Live Server?

i-am-getting-connection-refused-error.But-if-i-run--laravel-echo-server start command it says laravel-echo-server command not-found...help-please-m--working-on-VPS...live-server..

Activity icon

Started a new Conversation How To Start Laravel-echo-server On Live Server?

On Localhost we run laravel-echo-server start On live server what is the procedure to start it.

Activity icon

Started a new Conversation Laravel Redis Socket Io Connection Refused Error On Live VPS Server.

I have build a chat with socket io redis in laravel 5.8.everything works perfectly on localhost.But when i deploy it i am getting

Failed to load resource: net::ERR_CONNECTION_REFUSED
https://my-domian.com:6001/socket.io/?EIO=3&transport=polling&t=NFHp_eW:1 

Laravel-echo-server.json:

{
    "authHost": "https://my-domian.com",
    "authEndpoint": "/broadcasting/auth",
    "clients": [],
    "database": "redis",
    "databaseConfig": {
        "redis": {},
        "sqlite": {
            "databasePath": "/database/laravel-echo-server.sqlite"
        }
    },
    "devMode": false,
    "host": "my-domian.com",
    "port": "6001",
    "protocol": "https",
    "socketio": {},
    "secureOptions": 67108864,
    "sslCertPath": "",
    "sslKeyPath": "",
    "sslCertChainPath": "",
    "sslPassphrase": "",
    "subscribers": {
        "http": true,
        "redis": true
    },
    "apiOriginAllow": {
        "allowCors": true,
        "allowOrigin": "https://my-domain.com",
		"allowMethods": "GET, POST",
		"allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id"
    }
}

resources/js/bootstrap.js

import Echo from "laravel-echo"
window.io = require('socket.io-client');

if (typeof io !== 'undefined') {
    // alert('hiiiiiiiiiiiiiii--from-bootstap.js');
  window.Echo = new Echo({
    broadcaster: 'socket.io',
    host: window.location.hostname + ':6001',
    
    //auth
    
      headers: {
      'X-CSRF-TOKEN': $('meta[name=csrf-token]').attr('content'),
      }
      
  });
    console.log('Connected to socket.io');
} else {
    console.log('Not connected to socket.io');
}

I can see Connected to socket.io in console.But it seems problem with laravel echo server as it is not getting started.Please help me..Thanks...

Note:My-domain.com uses SSL..

Aug
06
1 month ago
Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

Solved:

I-removed-my-site--XCRF-COOKIE-which-is-sent-back-to-browsers-by-laravel..i-removed-this--somehow,it-was-sending-the-old-one..

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

There was space in my web.php removed now cookies-are-sent-to-browsers-but-still-getting-419-page-if-i-try-to-login..or-submit-any-post-Form.. @snapey

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

M-just-got-stuck..-:(

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

i-have-checked-every-file-i-don't have any character before <?php..and it is exaclty the same-code-which-is-running-on-my-shared-hosting...

Aug
05
1 month ago
Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

Hello-m-unable-to-see-the-cookies-sent-back-to-client..

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

thanks-for-reply..which-files-should-i-show-you?please-tell-me

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

m-unable-to-solve-this-from-one-weak:(

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

no,i-dnt-see-it-takes-me-to-419-page

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

please-tell-me-solution-is-it-bug?

Activity icon

Replied to How To Authenticate Owner Only To View Profile Editing Page

Route::middleware('auth',function(){
//only-authenticated-users
Route::get('edit/form/{id}','[email protected]');



});
Activity icon

Replied to How To Authenticate Owner Only To View Profile Editing Page

Just write your route inside the auth middleware..will solve this.

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

and i'm getting 419 page ...

Activity icon

Replied to CSRF TOKEN Mismatch Exception Laravel 5.8?

Thanks-for-reply...my storage permissions are 0775

Activity icon

Started a new Conversation CSRF TOKEN Mismatch Exception Laravel 5.8?

i have moved my laravel app to VPS Server..on shared it is working fine..but on VPS if i submit any form getting 419 page.i have clear cache generated new key but no gain..anyone can tell me solution please??

Jul
14
2 months ago
Activity icon

Started a new Conversation Laravel Echo Does Not Listen For Public Channel Events ?

I am using laravel webcoket package.Everything looks great on server side but laravel echo is not listening for events.. MySocketEvent.php:

<?php

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class MySocketEvent implements ShouldBroadcast
{
    use Dispatchable, InteractsWithSockets, SerializesModels;
    public $data;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($data)
    {
        //
        $this->data=$data;
    }

    /**
     * Get the channels the event should broadcast on.
     *
     * @return \Illuminate\Broadcasting\Channel|array
     */
    public function broadcastOn()
    {
        return new Channel('DemoChannel.1');
    }

    public function broadcastAs()
{
    return 'testing';
}
}

Web.php

Route::get('tests',function(){

    $arr=['some'=>'some'];

    broadcast(new \App\Events\MySocketEvent($arr));
    return view('hi');


});

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,
    key: 'my-key',
    wsHost: window.location.hostname,
    wsPort: 6001,
    wssPort: 6001,

    disableStats: true,
    cluster: 'ap2',
    //cluster: process.env.MIX_PUSHER_APP_CLUSTER,
    //encrypted: true
});


//subscribe-for-the-test-demo-channel-and-listen

window.Echo.channel('DemoChannel.1')
    .listen('.testing', (e) => {
        console.log("Received Data: ");
        console.log(e);
    });



i see the data sent from server by using php artisan webcokets:serve but laravel echo does not listen.PleaseHelp

Apr
12
5 months ago
Activity icon

Started a new Conversation Laravel 5.8 Default Authentication Not Working

Hello i am debugging my app since 9 hours has been passed.I have been tired now.Please help me ..When I dd in login method it returns me the auth user name but instead of returning to the dashboard it returns me to the back login page.

My Web.php

 Route::group(['prefix' => 'admin'],function(){


          Route::middleware(['role:admin'])->group(function () {

        Route::get('/dashboard','[email protected]')->name('admin.dashboard');

        
      });


  });

My Login Controller returns me to the admi.dashboard after successfull authentication first it goes to the admin/dashboard URL and then immediately it returns back to me the login page..What might be the reason ??please help me