$messages = DB::table('dialog_messages')
->leftJoin('user_attributes','user_attributes.user_id','=','dialog_messages.user_id')
->select('user_attributes.avatar','user_attributes.fullname','dialog_messages.replay','dialog_messages.created_at','user_attributes.user_id','dialog_messages.id')
->where('dialog_messages.dialog_id','=', $request->dialog_id)
->orderBy('dialog_messages.id','DESC')->paginate($request->limit);
0: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "111111",…}
avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg"
fullname: "Максим Дроздов"
replay: "111111"
created_at: "2020-02-07 09:41:21"
user_id: 1
id: 619
1: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
2: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
3: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
4: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
5: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
6: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
7: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "sdf sf",…}
8: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "dg dg",…}
9: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
10: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "d fgdf",…}
11: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
12: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "dfgdfg",…}
13: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "s dfsf",…}
14: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "dg dfg",…}
15: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
16: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
17: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "a sdad",…}
18: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
19: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
20: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
21: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "s fs f",…}
22: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "y hfh",…}
23: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
24: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "s fsf",…}
25: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
26: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
27: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "f sf",…}
28: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
29: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
30: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов",…}
31: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "gdf",…}
32: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "df",…}
33: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "dfg",…}
34: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "fg",…}
35: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "g↵d",…}
36: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "gd↵f",…}
37: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "gd ↵f",…}
38: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "d",…}
39: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "df↵g",…}
39: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "df↵g",…}
38: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "d",…}
37: {avatar: "uploads/users/avatars/1-2020-02-05-223757.jpg", fullname: "Максим Дроздов", replay: "gd ↵f",…}
requestAnimationFrame(animate(t));
, но без анимации рисует линию и так animate(t)
- вообще не работает