Comments (20)
I had the same issue. I found that the auth::user() wasn't being set (I'm using Laravel 5.4).
What sorted it out for me was adding the following to the constructor of my controller:
$this->middleware(function ($request, $next) { Talk::setAuthUserId(Auth::user()->id); return $next($request); });
Hope that helps!
from talk-example.
@kingsleyzissou its works!!
from talk-example.
Thanks It works fine!
It also solved trying to get property on non object error for me..
Thank you soo much!!
from talk-example.
I have the same error when I send a message.
from talk-example.
please share your code with me.
from talk-example.
@kingsleyzissou where i need to add this code ?
from talk-example.
@marslan2037 you place it inside the constructor and delete the line
Talk::setAuthUserId(Auth::user()->id);
So your constructor should look like this:
public function __construct()
{
$this->middleware('auth');
View::composer('partials.peoplelist', function($view) {
$threads = Talk::threads();
$view->with(compact('threads'));
});
$this->middleware(function ($request, $next) {
Talk::setAuthUserId(Auth::user()->id);
return $next($request);
});
}
from talk-example.
i have same error
from talk-example.
500 interval server error
from talk-example.
@kingsleyzissou this is what in preview tab
No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379]
from talk-example.
@marslan2037 that's a different issue, it sounds like you need to setup redis on your computer and update the .env file with the correct information
from talk-example.
what is redis ?
from talk-example.
i update everything with pusher info
from talk-example.
in env file and in talk.php also
from talk-example.
preview tab shows this error, console shows 500 interval server error with message/send route
from talk-example.
@kingsleyzissou i am using talk example, i did not add anything new in it, just did one change that have mention but same error, with and without that change
from talk-example.
@marslan2037 this issue is closed, the issue you're having is unrelated.
[tcp://127.0.0.1:6379] -> port 6739 is used for redis
You can go here for more info https://redis.io/
If you get redis setup on your machine it should resolve the issue.
from talk-example.
@kingsleyzissou ok, but i did not install anything new in it, if package did not have it then i have it, let me reclone it and try again
from talk-example.
@kingsleyzissou anyway thanks for your help
from talk-example.
i am same problem here........plz help me
from talk-example.
Related Issues (20)
- Editing avatars
- RelationNotFoundException HOT 3
- Your requirements could not be resolved to an installable set of packages. HOT 3
- Server pusher don't send message to pusher debug console HOT 6
- http://localhost:8000/ajax/message/send 500 (Internal Server Error) HOT 5
- Unable to install Pusher HOT 1
- Error list while installing laravel package
- Unable to do composer install HOT 14
- Pusher Error HOT 4
- I have to refresh the page every time to get the new message HOT 3
- Class talk does not exist
- No connection could be made because the target machine actively refused it HOT 1
- Issue with redis HOT 6
- Messages sent but chat page doesn't reload with them. HOT 1
- getaddrinfo failed HOT 1
- How to install? HOT 2
- How can I send attachment?
- I wasn't able to run the demo HOT 1
- Real time chat update not happening from pusher
- Pusher Trigger Problem when i sent the message Broadcast->dispatch is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from talk-example.