Laravel WebSockets Course | Chat App Example

preview_player
Показать описание
Hello and Welcome back to another AHT Cloud training series.

In this course, we will cover custom Laravel WebSocket Chat Application implementation using the Laravel framework.

We will not be using any third-party vendor for the WebSocket’s server. We will implement it from scratch, and we will use our server to handle all the WebSocket’s communications.

Before we get started, don’t forget to subscribe to my channel to stay up to date with my latest training videos.

Follow us

Chapters
0:00 Introduction
0:22 Course Overview
0:46 Demo
1:22 What is WebSockets?
2:01 How do WebSockets work?
2:42 What is Pusher Channels?
3:04 What is Laravel WebSockets?
3:29 Create a new Laravel project.
4:16 Create a new Database.
5:02 Configure Queue Driver.
6:12 Install Laravel WebSockets package.
7:48 Install Pusher PHP SDK.
8:10 Run WebSockets & Queue Servers.
12:08 Laravel WebSockets dashboard.
17:52 Create WebSockets connect API.
22:53 Implementation.
Рекомендации по теме
Комментарии
Автор

12 minutes into the video, you got a like and sub.

JLaurel
Автор

Sir, i am facing some error in my code :Failed to load resource: the server responded with a status of 500 (Internal Server Error)....
sir, please suggest me some

SurajKumar-uobo
Автор

When it comes to downloading the beyondcode package it is displaying an error "Your requirements could not be resolved to an installable set of packages.
" I have php 8.1 and laravel 10.23.0
As I saw on the internet that beyondcode does not support php 8.1
So how can we fix it?
If someone please can help, Thank you ! :D

RicardoKaram-ubpm
Автор

how are you able to loop thourgh the incomingMessages array my code says undeined formError varaible

botmonk
Автор

i have one problem whie running the npm run dev command. where can i send the problem

JaganParab
Автор

Hello, I tried to create an event on the dashboard as shown in the video, but it doesn't work, I looked at the console and it shows status 200 with the message 'ok', but the event does not appear on the console, I tried again with a new project without using it the queue and works normally, any idea what could be the problem?

Автор

my version is 8.1 when i try to migrate it gives me an error like PS D:\installed php artisan migrate
Migrating:

Error

Class not found

mananmozar
Автор

Can we listen rest api data in laravel8 websocket automatically after 2 second.
For example: a third party providing every 2 second id, title and news this three things giving us by api in json format, and at our side I want we receive this api refresh data every 2 second by websocket. Coz third party provider not giving websocket and giving news by api.

vishvish
Автор

great work but finally learn us how to upload it to shared host without any problem thanks a lot sir ❤

abdallakaram
Автор

Hi,

Can you Help me to do this on AWS EC2 ?

on my local everything working fine but on AWS ec2 the dashboard always showing "Channels current state is unavailable"

sarathks
Автор

Thank you ..
But how can I implement this in laravel if I'm making a chat app using flutter as frontend and laravel as backend ??
I mean how to use websocket for a chat app with pure laravel api with postman, Not with laravel view.
Thanks again sir

ph.d
Автор

Hello,
You should not use env constants directly into your php, better to use it from config file for safety issues.

mohamadcheaib
Автор

Hi my teacher, at the start, after the connect button when I press send event it responds me with "ok" but event msg is not shown into statistics table. any solution for this please?
respect from Pakistan

jtech