Пример #1
0
 public function show($id)
 {
     $m = array(24, 28, 30, 47, 29, 73, 37, 46, 59, 60);
     $k = array(9, 12, 55, 56, 40, 41, 93, 141, 85, 192);
     $user = User::findOrFail($id);
     $comments = Comment::latest('created_at')->paginate(20);
     $commits = Commit::latest('created_at')->get();
     return view('profile.show', compact('user', 'comments', 'commits', 'checkFriend', 'm', 'k'));
 }