Very simple php based chatting application
- Clone this repo
https://github.com/samironbarai/laravel_chat.git
- Install composer packages
cd laravel_chat
$ composer install
- Create and setup .env file
make a copy of .env.example and rename to .env
$ php artisan key:generate
put database credentials in .env file
- Migrate and insert records
$ php artisan migrate
$ php artisan tinker
$ factory(App\User::class, 30)->create();
$ factory(App\Message::class, 500)->create();
- Create and setup pusher account
login to https://pusher.com/ and create new app
put pusher credentials to .env file
replace PUSHER_APP_KEY in your app.blade.php
var pusher = new Pusher('49f3ba8c9d3adab2613e', {
cluster: 'ap2',
forceTLS: true
});