Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zerossb/notifications-soketi
A Websocket implementation in Laravel using Soketi
https://github.com/zerossb/notifications-soketi
Last synced: 8 days ago
JSON representation
A Websocket implementation in Laravel using Soketi
- Host: GitHub
- URL: https://github.com/zerossb/notifications-soketi
- Owner: zerossB
- Created: 2024-01-19T17:14:17.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-19T17:31:34.000Z (12 months ago)
- Last Synced: 2024-11-07T15:53:33.752Z (about 2 months ago)
- Language: PHP
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notifications Socketi
A Websocket implementation in Laravel using Soketi
## Technologies used
- Laravel 10
- Laravel Sail
- Laravel Breeze
- [Soketi](https://docs.soketi.app)## Running Locally
1. Copy to .env.example to .env
```bash
cp .env.example .env
```2. Install composer dependencies.
```bash
composer install
```3. Download docker images
```bash
sail pull
```4. Build the docker image
```bash
sail build --no-cache
```5. Run the server
```bash
sail up -d
```6. Generate Laravel keys
```bash
sail artisan key:generate
```7. Migrate the database
```bash
sail artisan migrate
```8. Access the browser and create your account and log into the system.
[http://localhost](http://localhost)## Sending the notification
1. Access the page in the browser
[http://localhost/notifications](http://localhost/notifications)2. Access tinker
```bash
sail artisan tinker
```3. Send the notification
```bash
event(new \App\Events\RealTimeEvent('RealTimeEvent Icon', 'RealTimeEvent', 1))
```