dazzz1er / confer Goto Github PK
View Code? Open in Web Editor NEWEasy real-time chat for laravel 5 based websites and applications
Easy real-time chat for laravel 5 based websites and applications
hi @dazzz1er did it works in larvel 5.3 ?
cordially
Hi guys,
i need a little bit help. I experience difficulties to create a link for direct starting a new chat with that user. I found that code, but when i click on it, nothing happens (no errors in Firebug), so i think i am missing something. Here is the code:
<ul class="confer-user-list confer-online-list"> <li data-userId="{{ $user->id }}"> <img class="confer-user-avatar" src="{{ url('/') . '/'.config('confer.avatar_dir') . $user->avatar }}"> <span class="confer-user-name">{{ $user->name }}</span> </li> </ul>
Any suggestions ?
"Call to undefined method Illuminate\Foundation\Application::bindShared()"
I use laravelcollective/html.
What is the problem?
why is there an if else statement here when both arrays are the same data?
public function getEventData($type = 'private')
{
return $type === 'global' ? [
'conversation' => $this->conversation,
'message' => $this,
'sender' => $this->sender
] : [
'conversation' => $this->conversation,
'message' => $this,
'sender' => $this->sender
];
}
Hello !
I have a problem with this package, i can't connect to my app :/
I have the message : "WebSocket is closed before the connection is established", and I don't know how to resolve it.
I'm using Laravel 5.1.
Thanks for your help !
Hi,
did you think of "private" messaging support (select user(s) from list and start a chat? Because now it looks like you have chat rooms that all users can join.
Hello, I had the problem when I try :php artisan migrate --seed . I add :DJB\Confer\ConferServiceProvider,
on Config/app.php
I like what you've done and this seems really great but what I think is how to implement all that functionality with nodejs an redis!
and I hope I will do this in some period of time! Definitely i will do this)
I made a few formatting changes to the conversation views to better suit my app, but newly posted messages are still posting with the original formatting until the conversation is closed/reopened. Where can I modify newly pushed html data?
Wondering if anyone got it working on 5.4 I managed to install it and seed but nothing shows up , and when I go to one of the routes it just sends me back to homepage. any info would help
I managed to troubleshoot the code! Clockwork! Awesome package.
i have pusher installed with this version "pusher/pusher-php-server": "~2.6"
but it seems that packages doesn't feel it dunno why ,
so please i liked ur package the most , is there anyway to make it flies with 5.4
Is there an option to choose with which users is possible to chat ?
Error from laravel log:
[2015-12-24 17:09:39] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'App\Commands\Command' not found' in /home/crm/public_html/crmnew/vendor/djb/confer/src/Commands/MessageWasSent.php:11
Stack trace:
#0 {main}
You think about upgrading to version 5.2?
I get an error when I add DJB\Confer\ConferServiceProvider in config/app.
error :
Parse error: syntax error, unexpected 'DJB' (T_STRING), expecting ']' in C:\xampp\htdocs\app-chat\config\app.php on line 159
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.
Hi,
your README does not include any referenced License and a LICENSE.md is missing, too.
I want to use this package as base for a messaging system in a commercial project that uses Laravel 5.2 and Thruway as local WebsocketServer.
There is a problem when I integrate this package into my project. When I created a new project, confer package worked perfectly but when I put into my working project I got this error. And it said that $channel_info was null and it could not get any user from $online_users.
Why is there no channel to be got?
Does anybody know how to fix?
I get a 500 - with this error:
Illegal operator and value combination.
InvalidArgumentException in Builder.php line 457:
Illegal operator and value combination.
in Builder.php line 457
at Builder->where('id', '<', null)
at call_user_func_array(array(object(Builder), 'where'), array('id', '<', null)) in Builder.php line 526
at Builder->where('id', '<', null)
at call_user_func_array(array(object(Builder), 'where'), array('id', '<', null)) in Relation.php line 283
at Relation->__call('where', array('id', '<', null)) in ConversationController.php line 148
at HasMany->where('id', '<', null) in ConversationController.php line 148
at ConversationController->showMoreMessages(object(Conversation), object(Request))
at call_user_func_array(array(object(ConversationController), 'showMoreMessages'), array('conferconversation' => object(Conversation), object(Request))) in Controller.php line 246
at Controller->callAction('showMoreMessages', array('conferconversation' => object(Conversation), object(Request))) in ControllerDispatcher.php line 162
at ControllerDispatcher->call(object(ConversationController), object(Route), 'showMoreMessages') in ControllerDispatcher.php line 107
at ControllerDispatcher->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Authenticate.php line 47
at Authenticate->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 108
at ControllerDispatcher->callWithinStack(object(ConversationController), object(Route), object(Request), 'showMoreMessages') in ControllerDispatcher.php line 67
at ControllerDispatcher->dispatch(object(Route), object(Request), 'DJB\Confer\Http\Controllers\ConversationController', 'showMoreMessages') in Route.php line 204
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 701
at Router->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Router.php line 703
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 670
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 21
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53
I have followed the installation instruction yet when I run
php artisan migrate --seed
I received this error
[ReflectionException]
Class ConferSeeder does not exist
any ideas, help please?
i have this issue my project is got stuck because of these notifications
Downloaded confer yesterday and got it installed after doing the demo. (Thanks for helping by email to set it up)
Presently you can send javascript and images into the channel and it will render them locally and with the other participants in the chat.
Hi, how to differentiate the online user and offline user? please explain..
for mine automatically calling session request not working
thanks
Im having some trouble when I try to "create" a new conversation with a user, im getting this 404 error: http://my-url/confer/user/2/conversation/NaN/info and a 500 Internal Server Error http://my-url/confer/conversation/find/user/1: ErrorException in Conversation.php line 87:
array_intersect(): Argument #1 is not an array
It seems as if the Conversations are not being created in the database and I can only chat in the global conversation.
Can you please help me?
Thank you for your time
Hi, saw your demo and it really looks like what I need
I followed your intsallations steps, but faced one difficulty
After installation I really have no idea how to use your chat system, how to implement it to my application
Can you provide any simple instructions, how to set up a page with your chat system working on it
By the way, I'm using laravel 5.4, maybe this took some effect on intallation process
Hello,
I have successfully installed the package and configured it according to the instructions you have provided, however, whenever I try to initiate a conversation with another person who's available online, I get no response/ reaction from the click. On checking the console I am getting the following error:
in Conversation.php line 88
at HandleExceptions->handleError('2', 'array_intersect(): Argument #1 is not an array', 'C:\xampp\htdocs\HRM\vendor\djb\confer\src\Conversation.php', '88', array('user' => object(User), 'other_user' => object(User), 'user_participates' => object(Collection), 'other_user_partcipates' => object(Collection), 'static' => object(Conversation)))
at array_intersect(object(Collection), object(Collection)) in Conversation.php line 88
at Conversation::findOrCreateBetween(object(User), object(User)) in ConversationController.php line 127
at ConversationController->find(object(User))
at call_user_func_array(array(object(ConversationController), 'find'), array('conferuser' => object(User))) in Controller.php line 256
at Controller->callAction('find', array('conferuser' => object(User))) in ControllerDispatcher.php line 164
at ControllerDispatcher->call(object(ConversationController), object(Route), 'find') in ControllerDispatcher.php line 112
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 45
at Authenticate->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
at ControllerDispatcher->callWithinStack(object(ConversationController), object(Route), object(Request), 'find') in ControllerDispatcher.php line 69
at ControllerDispatcher->dispatch(object(Route), object(Request), 'DJB\Confer\Http\Controllers\ConversationController', 'find') in Route.php line 203
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 708
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 675
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54
which then leads to the following error visible in the console window:
in Router.php line 960
at Router->Illuminate\Routing\{closure}('NaN', object(Route))
at call_user_func(object(Closure), 'NaN', object(Route)) in Router.php line 784
at Router->performBinding('conferconversation', 'NaN', object(Route)) in Router.php line 767
at Router->substituteBindings(object(Route)) in Router.php line 754
at Router->findRoute(object(Request)) in Router.php line 659
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54
Hi,
I am getting "NetworkError: 401 Unauthorized - http://localhost:8000/confer/conversation/1" when trying to open the chat box. And Auth:user() is null. Any ideas why the ConversationController is not authenticating? I am using Laravel 5.2 .
In the case of another message before a page reload, the user will be pulled back into the conversation.
Is there an option to prevent some user to message you. For example I was friend with a user, but i have decided to block him, so i want no longer to receive messages from him ?
Few days ago I've implemented mentions (in L4) using At.js which you can find here https://github.com/ichord/At.js
it is great and simple to use so I hope you will find it useful.
Realmente genial, es lo que buscaba pero no puedo usarlo con la versión 5.4 Laravel
Currently you do not get a new message notification unless you have previously sent a message or opened a conversation with a user.
@hallmichael great to hear it wasn't too bad for the conversion to 5.1, appreciate the work you've done there!
In future I think I could look at separating the code out in such a way that we can have custom themes easily implemented. Depending on the situation as well, I will likely create a new branch or repository for a version of confer which uses Redis + socket.js for pushing instead of pusher as it is much faster and has no third party service reliance.
Originally posted by @dazzz1er in #17 (comment)
Hello @dazzz1er. Please tell me if there is a working version of a confer with the implementation of Redis + socket.js
Can you helpe me I'v got an error when I did php artisan migrate --seed
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Model' not found
How can I solve that ?
Hello there,
When it comes to Laravel 5.5, the compatible update.
Good work.
Could you please explain how I can start conversation with oneself with existing structure of the table (but before that check if there is already conversation with oneself)? Also before starting conversation with oneself I have already other conversations.
Looks like you changed the name can you confirm ?
[InvalidArgumentException]
Could not find package djb/confer at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.