Closed TomVoxsen closed 7 years ago
Hi, @TomVoxsen
Thank you for catching
I will use config("broadcasting.connections.pusher.key")
to replace env('PUSHER_KEY')
and implement config("broadcasting.connections.pusher.options")
to laravel-echo
make options be flexible
@TomVoxsen I fixed, please upgrade to v1.4.3 and re-publish scripts
php artisan vendor:publish --provider="Casperlaitw\LaravelFbMessenger\LaravelFbMessengerServiceProvider" --tag="public" --roce
Hi, excellent package btw! Not necessarily issues, but I did stumble across a couple of hurdles when using the debug tool:
window.pusherKey = '{{ env('PUSHER_KEY') }}';
so I simply copied debug.blade.php to resources/views/vendor/laravel-fb-messenger/debug.blade.php and updated line 17 towindow.pusherKey = '{{ config("broadcasting.connections.pusher.key") }}';
{broadcaster:"pusher",key:window.pusherKey,namespace:"Casperlaitw.LaravelFbMessenger.Events",cluster:"eu"}
Using Laravel 5.4 Hope this helps.