This project is a sample implementation of Laravel events and notification broadcasting using Laravel WebSockets.
To install and set up the project, follow these steps:
- Clone the repository.
- Run
composer install && bun install
to install dependencies. - Setup the
.env
file and database configurations. - Run database migrations
php artisan migrate
- Run
bun run buid
to build assets. - Start laravel server
php artisan serve
- Start websocket server
php artisan websocket:serve
To use the project,
- Create new user from
Users (/users)
page. - Check notifications and real-time updates in
root (/)
page. - The notification count and notification list updates when new user created.
This project is licensed under the MIT License. Feel free to use, modify, and distribute this project as needed.