Closed ickma closed 8 years ago
may be its not talk related errors. you may recheck your code.
I have soveld this problem,with changing Talk::setAuthUserId(auth()->user()->id);
to if(auth()->user()){Talk::setAuthUserId(auth()->user()->id);}
.But now,a new problem comes to me,when I visit http://localhost:8000/laravel-talk/example/message/inbox
,I saw 2 errors from console of my chrome:jquery.min.js:2 Uncaught TypeError: Cannot read property 'classList' of null
,jquery.min.js:2 Uncaught TypeError: $(...).getNiceScroll(...).doScrollTop is not a function
.
I think all troubles I'm facing are because I haven't read your code line by line.I will read your example and document carefully again,thanks!
After I installed talk using composer,added talk's service provider and alias into
app.php
,if I usephp artisan route:list
to list all my route,the terminal show errors to me :