public function showmanageshop() { $db = Session::get('db'); Config::set('database.default', $db); $id = Auth::user()->memb___id; $coin = $this->getCoin($id); $shopitems = WebShopItems::where('belongto', '=', $id)->orderby('buytime', 'desc')->orderby('uptime', 'desc')->paginate(7); $data = array('page' => 'Manage My Shop', 'id' => $id, 'coin' => $coin, 'items' => $shopitems); return View::make('template/neon/manageshop')->with($data); }