當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Confide::logout方法代碼示例

本文整理匯總了PHP中Confide::logout方法的典型用法代碼示例。如果您正苦於以下問題:PHP Confide::logout方法的具體用法?PHP Confide::logout怎麽用?PHP Confide::logout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Confide的用法示例。


在下文中一共展示了Confide::logout方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: function

Route::filter('xml', function () {
    Api::$type = 'xml';
});
Route::when('json', 'json');
Route::when('xml', 'xml');
Route::filter('checkuser', function () {
    if (Auth::check()) {
        DB::update('UPDATE users SET last_activity = ? WHERE id = ?', array(date('Y-m-d H:i:s', time()), Auth::user()->id));
        if (!Request::ajax()) {
            Activity::log(array('contentID' => Confide::user()->id, 'contentType' => 'activity', 'description' => 'Page Loaded', 'details' => '<a href="' . $_SERVER['REQUEST_URI'] . '" target="_new" class="btn">link</a>', 'updated' => Confide::user()->id ? true : false));
        }
        $value = Cache::remember('valid_user', '1', function () {
            return Auth::user()->confirmed != '1' ? true : false;
        });
        if ($value) {
            Confide::logout();
            return Redirect::to('suspended');
        }
    }
});
Route::filter('auth', function ($route, $request) {
    if (Auth::guest()) {
        Session::put('loginRedirect', Request::url());
        return Redirect::to('user/login/');
    }
});
Route::filter('auth.basic', function () {
    return Auth::basic();
});
Route::filter('guest', function () {
    if (Auth::check()) {
開發者ID:Aranjedeath,項目名稱:Laravel_Starter,代碼行數:31,代碼來源:filters.php

示例2: logout

 /**
  * Log the user out of the application.
  *
  * @return  Illuminate\Http\Response
  */
 public function logout()
 {
     Confide::logout();
     return Redirect::to('/');
 }
開發者ID:matalina,項目名稱:kids-pledge,代碼行數:10,代碼來源:UsersController.php

示例3: getLogout

 /**
  * Log the user out of the application.
  *
  */
 public function getLogout()
 {
     Confide::logout();
     return Redirect::to('user/login');
 }
開發者ID:binaryk,項目名稱:lareab,代碼行數:9,代碼來源:UserController.php

示例4: logout

 /**
  * Log the user out of the application.
  *
  */
 public function logout()
 {
     Confide::logout();
     return Redirect::to('/')->with('clearGuestKey', true);
 }
開發者ID:aleguisf,項目名稱:fvdev1,代碼行數:9,代碼來源:UserController.php

示例5: logout

 /**
  * Log the user out of the application.
  *
  */
 public function logout()
 {
     if (Auth::check()) {
         if (!Auth::user()->registered) {
             $account = Auth::user()->account;
             $account->forceDelete();
         }
     }
     Session::forget('news_feed_id');
     Session::forget('news_feed_message');
     Confide::logout();
     return Redirect::to('/')->with('clearGuestKey', true);
 }
開發者ID:stewartadam,項目名稱:invoice-ninja,代碼行數:17,代碼來源:UserController.php

示例6: logout

 /**
  * Log the user out of the application.
  *
  * @return  Illuminate\Http\Response
  */
 public function logout()
 {
     Confide::logout();
     Cart::destroy();
     return Redirect::to('store');
 }
開發者ID:shittyc0de,項目名稱:AplikasiLC,代碼行數:11,代碼來源:UsersController.php

示例7: cancelAccount

 public function cancelAccount()
 {
     if ($reason = trim(Input::get('reason'))) {
         $email = Auth::user()->email;
         $name = Auth::user()->getDisplayName();
         $data = ['text' => $reason];
         $this->userMailer->sendTo(CONTACT_EMAIL, $email, $name, 'Invoice Ninja Feedback [Canceled Account]', 'contact', $data);
     }
     $account = Auth::user()->account;
     $account->forceDelete();
     Confide::logout();
     return Redirect::to('/')->with('clearGuestKey', true);
 }
開發者ID:stewartadam,項目名稱:invoice-ninja,代碼行數:13,代碼來源:AccountController.php

示例8: logout

 /**
  * Log the user out of the application.
  *
  */
 public function logout()
 {
     if (Auth::check()) {
         if (!Auth::user()->registered) {
             $account = Auth::user()->account;
             $account->forceDelete();
         }
     }
     Confide::logout();
     return Redirect::to('/')->with('clearGuestKey', true);
 }
開發者ID:poseidonjm,項目名稱:invoice-ninja,代碼行數:15,代碼來源:UserController.php

示例9: getLogout

 /**
  * Log the user out of the application.
  *
  */
 public function getLogout()
 {
     Event::fire('user.logout', array(Confide::user()));
     Activity::log(array('contentID' => Confide::user()->id, 'contentType' => 'logout', 'description' => Confide::user()->id, 'details' => '', 'updated' => Confide::user()->id));
     Confide::logout();
     return Redirect::to('/');
 }
開發者ID:Aranjedeath,項目名稱:l4-starter,代碼行數:11,代碼來源:UserController.php

示例10: getLogout

 /**
  * Log the user out of the application.
  *
  */
 public function getLogout()
 {
     Confide::logout();
     try {
         // Logout all providers
         $socialAuth = new Hybrid_Auth(app_path() . '/config/hybridauth.php');
         $socialAuth->logoutAllProviders();
     } catch (Exception $err) {
         var_dump($err);
     }
     return Redirect::to('/');
 }
開發者ID:dileepxervmon,項目名稱:Xdocker,代碼行數:16,代碼來源:UserController.php

示例11: logoutPOS

 public function logoutPOS()
 {
     if (Auth::check()) {
         if (!Auth::user()->registered) {
             $account = Auth::user()->account;
             $account->forceDelete();
         }
     }
     Confide::logout();
     $datos = array('saliendo XD' => '12321');
     return Response::json($datos);
     // return Redirect::to('/')->with('clearGuestKey', true);
 }
開發者ID:Vrian7ipx,項目名稱:cascadadev,代碼行數:13,代碼來源:UserController.php

示例12: getLogout

 public function getLogout()
 {
     $this->user->logout();
     Confide::logout();
     return Redirect::to('/');
 }
開發者ID:Aranjedeath,項目名稱:Laravel_Starter,代碼行數:6,代碼來源:SiteUserService.php

示例13: logout

 /**
  * Log the user out of the application.
  *
  * @return  Illuminate\Http\Response
  */
 public function logout()
 {
     Confide::logout();
     return Redirect::action('home');
 }
開發者ID:mdela,項目名稱:movie-series,代碼行數:10,代碼來源:UsersController.php

示例14: logout

 /**
  * Log the user out of the application.
  *
  * @return  Illuminate\Http\Response
  */
 public function logout()
 {
     Confide::logout();
     session_destroy();
     return Redirect::to('/');
 }
開發者ID:prianticonsulting,項目名稱:Habitaria,代碼行數:11,代碼來源:UsersController.php

示例15: getLogout

 /**
  * Log the user out of the application.
  *
  */
 public function getLogout()
 {
     Confide::logout();
     try {
         // Logout all providers
         $socialAuth = new Hybrid_Auth(app_path() . '/config/hybridauth.php');
         $socialAuth->logoutAllProviders();
     } catch (Exception $err) {
         Log::error($err);
         return Redirect::to('/')->with('notice', $err->getMessage());
     }
     return Redirect::to('/');
 }
開發者ID:XDocker,項目名稱:app,代碼行數:17,代碼來源:UserController.php


注:本文中的Confide::logout方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。