How to use it?
huyle2607 opened this issue · comments
I know it is a really really bad question but how do I make it work on my page. I've tried many way but it doesn't work. I just need someone to guide me where to put all the code. I'm using Laravel 5.1 by the way.
You can check out my fork, its not perfect but it works with 5.1 just check the updated readme and go from there. dazzz1er is likely to rewrite and publish a proper 5.2 release I just made the changes to get it working with the existing code.
Forked repo here: https://github.com/hallandcodigital/confer
@hallmichael Thanks for your fork. I managed to make it work however I still have some problems with this package.
First of all, when I logged in. I cannot see anyone online even though I logged in with several accounts from different browsers.
Second thing is that when I send a message, I have to refresh the page to see it and in the console after I clicked send, there was an Internal Server Error (500).
Please help me with these problems! I don't know how to fix it.
@huyle2607 - sorry I am no pro at pusher! It is saying your auth value for pusher is incorrect, I could only guess the config is the issue, you can email me your code/post it here and I can compare to my working instance.
I would also need to see the 500 internal server error in your laravel.log.
@hallmichael Hi, I managed to make it work perfectly and I can chat globally now. Thanks to all your update for laravel 5.1. Unfortunately, it still has a problem which I cannot chat privately with another person. When I click on one user, it creates a row in confer_conversations table between 2 people so clearly it works perfectly in the database however on the browser nothing happens.
It works globally only.
@hallmichael Finally, I fixed everything and now my project works perfectly. The problem was in the Helpers.php file. It has a function implode() and it needs an array but Laravel seems not to know $items as an array so I have to declare $items = array(). And that's it.
I'm so sorry if this issue annoys you. This issue is close now! :)
@huyle2607 nice work! so the private chat works too? cool stuff. I just wish I had more time!
Yeah! The private chat works well too. Thanks for your Laravel 5.1 update, though :)) Cheer!
Thanks for the issue and posting the fix @huyle2607 - should be helpful when I make the jump to an official L5.2 version! I've been working away from Laravel (actually with iOS) for a while so these kinds of issues are good to know as I have not kept up with the changes.
Thanks @hallmichael for the fork in the mean time and helping where you can with issues!