Broadsoft package
Broadsoft package for laravel 5.4, (*1)
To install this package use:
composer require jvleeuwen/broadsoft
* This installs the latest development release and is not ready for production usage !, (*2)
Add the serviceProvider to your config/app.php, and enable the BroadcastServiceProvider, (*3)
jvleeuwen\broadsoft\BroadsoftServiceProvider::class,
App\Providers\BroadcastServiceProvider::class,
Add this line to webpack.mix.js in the root folder just below the first .js entry, (*4)
.js('resources/assets/js/broadsoft.js', 'public/js')
npm install && npm install --save laravel-echo pusher-js && npm run dev
Enter pusher details in the .env file
First u need to create an app on pusher.com\
After creating he app the needed credentials shown below will be available\
Dont forget to set the BROADCAST_DRIVER= to 'pusher', (*5)
BROADCAST_DRIVER=pusher
PUSHER_APP_ID=app_id
PUSHER_APP_KEY=app_key
PUSHER_APP_SECRET=app_secret
Enable laravel-echo with pusher
Edit the resource/assets/js/bootstrap.js file\
from:, (*6)
// import Echo from 'laravel-echo'
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: 'your-pusher-key'
// });
to:, (*7)
import Echo from 'laravel-echo'
window.Pusher = require('pusher-js');
window.Echo = new Echo({
broadcaster: 'pusher',
key: 'enter-the-pusher-app-key-here',
cluster: 'eu',
encrypted: true
});
README.md
This file will continue to grow with features developt and implemented., (*8)