Beispiel #1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function home(User $user, Online $online)
 {
     $online->UpdateIdleUser();
     $activeuser = $online->OnlineUsers();
     $users = $this->usersOrigin->getDashboardPaginated();
     return view('user.home', compact('users', 'activeuser'));
 }
Beispiel #2
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function home(User $UserData, Online $online)
 {
     $online->UpdateIdleUser();
     $users = $this->usersOrigin->getDashboardPaginated();
     $UserNewsFeed = Redis::lrange('timeline:' . \Auth::user()->id, 0, -1);
     // dd($UserNewsFeed);
     return view('user.home', compact('users', 'UserNewsFeed'));
 }