当前位置: 首页>>代码示例>>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;未经允许,请勿转载。