Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Chat-Application

This is a simple chat application built using Laravel and Livewire It uses Pusher to send messages in real-time.

Installation

Clone the repository

git clone

Install dependencies

composer install

Copy the example env file and make the required configuration changes in the .env file

cp .env.example .env

Update 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=pusher

Create 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:generate

Run the database migrations (Set the database connection in .env before migrating)

php artisan migrate

Install the JavaScript dependencies

npm install

Run Websockets server

php artisan websockets:serve

Run the local development server

php artisan serve

You can now access the server at http://localhost:8000

Testing

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!

Credits

Learning Laravel

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.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages