Ejemplo n.º 1
0
 public function showThuongdatmoc($server_id)
 {
     $show_gift = true;
     $gifts = QuaDatMoc::all();
     $server_key = 'server' . $server_id;
     if (!Session::has($server_key)) {
         $server = Server::findOrfail($server_id);
         Session::put($server_key, $server);
     }
     $account = new GAccount();
     $account->setConnection(session($server_key)->user_db);
     $account = $account->where('acct_id', session('account')->acct_id)->first();
     Session::forget('account');
     Session::put('account', $account);
     return view('frontend.user.thuongdatmoc')->with(compact('gifts', 'server_id', 'account', 'show_gift'));
 }