Giter VIP home page Giter VIP logo

Comments (20)

kingsleyzissou avatar kingsleyzissou commented on June 1, 2024 2

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.

ElBetito avatar ElBetito commented on June 1, 2024 1

@kingsleyzissou its works!!

from talk-example.

jbhoomi89 avatar jbhoomi89 commented on June 1, 2024 1

Thanks It works fine!
It also solved trying to get property on non object error for me..
Thank you soo much!!

from talk-example.

ed-i-arellano avatar ed-i-arellano commented on June 1, 2024

I have the same error when I send a message.

from talk-example.

nahid avatar nahid commented on June 1, 2024

please share your code with me.

from talk-example.

marslan2037 avatar marslan2037 commented on June 1, 2024

@kingsleyzissou where i need to add this code ?

from talk-example.

kingsleyzissou avatar kingsleyzissou commented on June 1, 2024

@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.

marslan2037 avatar marslan2037 commented on June 1, 2024

i have same error

from talk-example.

marslan2037 avatar marslan2037 commented on June 1, 2024

500 interval server error

from talk-example.

marslan2037 avatar marslan2037 commented on June 1, 2024

@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.

kingsleyzissou avatar kingsleyzissou commented on June 1, 2024

@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.

marslan2037 avatar marslan2037 commented on June 1, 2024

what is redis ?

from talk-example.

marslan2037 avatar marslan2037 commented on June 1, 2024

i update everything with pusher info

from talk-example.

marslan2037 avatar marslan2037 commented on June 1, 2024

in env file and in talk.php also

from talk-example.

marslan2037 avatar marslan2037 commented on June 1, 2024

preview tab shows this error, console shows 500 interval server error with message/send route

from talk-example.

marslan2037 avatar marslan2037 commented on June 1, 2024

@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.

kingsleyzissou avatar kingsleyzissou commented on June 1, 2024

@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.

marslan2037 avatar marslan2037 commented on June 1, 2024

@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.

marslan2037 avatar marslan2037 commented on June 1, 2024

@kingsleyzissou anyway thanks for your help

from talk-example.

alamintpi avatar alamintpi commented on June 1, 2024

i am same problem here........plz help me

from talk-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.