nahid / talk-example

This project is demo for Laravel-Talk package and its also Docker ready
http://github.com/nahid/talk
131 stars 77 forks source link

I have to refresh the page every time to get the new message #21

Open baig772 opened 7 years ago

baig772 commented 7 years ago

Hello @nahid , I am re-opening this issue. I have to refresh my page to get new messages. Please look into this

nahid commented 6 years ago

Please update talk config with latest version

baig772 commented 6 years ago

I already did. But still I have to refresh the page

nahid commented 6 years ago

Which version of Talk are you using? Please share your Talk config.

baig772 commented 6 years ago

<?php return [ 'user' => [ 'model' => 'App\User', ], 'broadcast' => [ 'enable' => true, 'app_name' => 'heroic-salute-582', 'pusher' => [ 'app_id' => env('PUSHER_APP_ID'), 'app_key' => env('PUSHER_KEY'), 'app_secret' => env('PUSHER_SECRET'), 'options' => [ 'cluster' => 'ap1', 'encrypted' => true ] ], ], ];

nahid commented 6 years ago

Which version of Talk are you using?

baig772 commented 6 years ago

"nahid/talk": "^2.0",

nahid commented 6 years ago

Please update it with version v2.2.1

namanucode commented 4 years ago

Hi, Mr. Nahid, I have used 2.3 but still the same issue and one more issue in below code

  1. Auth::user()->id trying to get id of non object
  2. when Print $threads in controller its show data but in view its show undefined variable public function __construct() { Auth::user()->id $this->middleware(['auth','verified','talk']); Talk::setAuthUserId(Auth::user()->id);

    View::composer('user.message.partials.peoplelist', function($view){
        $threads =  Talk::threads();
         $view->with(compact($threads));
    });

    }

can you please help me