minh/pusherchat

Demo pakage chat realtime

dev-master 2017-07-29 19:18 UTC

This package is auto-updated.

Last update: 2024-11-09 12:48:49 UTC


README

package make by minhngoc. Email: minhngoc2512@yahoo.com Install and use package PUSHERCHAT:

  1. Run command artisan: "php artisan make:auth"
  2. Create a account on website Pusher
  3. Change content file .env on folder root:PUSHER_APP_ID,PUSHER_APP_KEY,PUSHER_APP_SECRET,BROADCAST_DRIVER=pusher in your server Pusher.
  4. In file config/app.php uncomment App\Providers\BroadcastServiceProvider::class,
  5. Add service provider " Minh\PusherChat\ChatServiceProvider::class," in file config/app.php on array "provider"
  6. Enter command: composer require pusher/pusher-php-server "~2.6"
  7. You may define a meta tag in your application's head HTML element:
  8. Run command artisan : "php artisan migrate"
  9. Include on blade template before tag "/body": " @include('ChatPusher.home');"
  10. Run command artisan : "php artisan serve"