Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fajarwz/blog-laravel-soketi
simple example of how to use Websockets in laravel with Soketi with laravel 10
https://github.com/fajarwz/blog-laravel-soketi
example-project laravel php realtime soketi websocket websockets
Last synced: 3 months ago
JSON representation
simple example of how to use Websockets in laravel with Soketi with laravel 10
- Host: GitHub
- URL: https://github.com/fajarwz/blog-laravel-soketi
- Owner: fajarwz
- Created: 2023-09-14T02:10:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-23T15:32:17.000Z (over 1 year ago)
- Last Synced: 2024-05-01T19:27:26.104Z (10 months ago)
- Topics: example-project, laravel, php, realtime, soketi, websocket, websockets
- Language: PHP
- Homepage: https://fajarwz.com/blog/unlocking-real-time-with-websockets-in-laravel-with-soketi/
- Size: 137 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unlocking Real-Time With WebSockets in Laravel with Soketi
This is an implementation of WebSockets in Laravel with [Soketi](https://soketi.app/). A blog about this can be found here: [Unlocking Real-Time With WebSockets in Laravel with Soketi | Fajarwz](https://fajarwz.com/blog/unlocking-real-time-with-websockets-in-laravel-with-soketi/).## Simple App Demo
### Switch to `master` Branch
If you are on another branch
```
git checkout master
```### Install Soketi Server
First download the required dependencies:
```
apt install -y git python3 gcc build-essential
```After that, you can install Soketi CLI globally
```
npm install -g @soketi/soketi
```You can learn more about the installation [here](https://docs.soketi.app/getting-started/installation)
### Start the Soketi Server
```
soketi start
```### Install Composer Packages
```
composer install
```### Install NPM Packages
```
npm install
```### Create `.env` file from `.env.example`
```
cp .env.example .env
```### Generate Laravel App Key
```
php artisan key:generate
```### Run the Vite Dev
```
npm run dev
```### Run the App
```
php artisan serve
```## Chat App Demo
### Switch to `chat` Branch
```
git checkout chat
```### Run the Migration
```
php artisan migrate
```### Run the Vite Dev
```
npm run dev
```### Run the App
```
php artisan serve
```