Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 841 Bytes

README.md

File metadata and controls

42 lines (35 loc) · 841 Bytes

Laravel realtime chatting application

Very simple php based chatting application

Installation

  1. Clone this repo
https://github.com/samironbarai/laravel_chat.git
  1. Install composer packages
cd laravel_chat
$ composer install
  1. 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
  1. Migrate and insert records
$ php artisan migrate
$ php artisan tinker
$ factory(App\User::class, 30)->create();
$ factory(App\Message::class, 500)->create();
  1. 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
});