/** * function to show Current logged in user profile all data from source * @return type */ public function index(User $UserData, Online $online) { $activeuser = $online->loggedInUser(); // $user = $this->usersOrigin->findUsernameBy($UserData); return view('user.user', compact('UserData', 'activeuser')); }