This is a simple chat application built using Laravel and Livewire It uses Pusher to send messages in real-time.
Clone the repository
git cloneInstall dependencies
composer installCopy the example env file and make the required configuration changes in the .env file
cp .env.example .envUpdate the .env file with Database credentials
DB_CONNECTION=mysql
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=Change Broadcast Driver to Pusher
BROADCAST_DRIVER=pusherCreate a new Pusher application and update the .env file with the pusher credentials
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=Generate an app encryption key
php artisan key:generateRun the database migrations (Set the database connection in .env before migrating)
php artisan migrateInstall the JavaScript dependencies
npm installRun Websockets server
php artisan websockets:serveRun the local development server
php artisan serveYou can now access the server at http://localhost:8000
You can test the application by opening two different browsers and login with two different users. You can now send messages between the two users.
Have fun!
- Laravel
- Livewire
- Pusher
- Tailwind CSS
- Alpine.js
- Laravel Breeze
- Laravel Websockets
- Laravel
- Livewire
- Pusher
- Tailwind CSS
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
The Laravel framework is open-sourced software licensed under the MIT license.