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


PHP Authenticatable::setRememberToken方法代碼示例

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


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

示例1: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable $user
  * @param  string                                     $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     if ($user->exists) {
         $user->setRememberToken($token);
         $user->save();
     }
 }
開發者ID:ssddanbrown,項目名稱:bookstack,代碼行數:14,代碼來源:LdapUserProvider.php

示例2: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @param  string  $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
 }
開發者ID:prkeshri,項目名稱:getpanel,代碼行數:11,代碼來源:FileUserProvider.php

示例3: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable $user
  * @param  string $token
  * @return void
  */
 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     /** @var DbObject $user */
     $user->save();
 }
開發者ID:swayok,項目名稱:PeskyCMF,代碼行數:13,代碼來源:PeskyOrmUserProvider.php

示例4: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @param  string  $token
  * @return void
  */
 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     $user->save();
 }
開發者ID:janhartigan,項目名稱:framework,代碼行數:12,代碼來源:EloquentUserProvider.php

示例5: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param \Illuminate\Contracts\Auth\Authenticatable $user
  * @param string                                     $token
  *
  * @return void
  */
 public function updateRememberToken(AuthenticatableContract $user, $token)
 {
     $user->setRememberToken($token);
     $this->em->persist($user);
     $this->em->flush($user);
 }
開發者ID:rosstuck,項目名稱:Laravel-Doctrine,代碼行數:14,代碼來源:DoctrineUserProvider.php

示例6: refreshRememberToken

 /**
  * Refresh the "remember me" token for the user.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
  * @return void
  */
 protected function refreshRememberToken(Authenticatable $user)
 {
     $user->setRememberToken($token = Str::random(60));
     $this->provider->updateRememberToken($user, $token);
 }
開發者ID:briets,項目名稱:framework,代碼行數:11,代碼來源:SessionGuard.php

示例7: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  * @param  Authenticatable $user
  * @param  string          $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->repository->flush();
 }
開發者ID:ymnl007,項目名稱:Usher,代碼行數:11,代碼來源:UsherUserProvider.php

示例8: updateRememberToken

 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     $this->em->persist($user);
     $this->em->flush();
 }
開發者ID:barnetik,項目名稱:doctrine-auth-provider,代碼行數:6,代碼來源:DoctrineUserProvider.php

示例9: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  \Illuminate\Contracts\Auth\Authenticatable $user
  * @param  string                                     $token
  *
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     if ($this->use_remember_me == TRUE) {
         if ($this->log_logins) {
             Log::debug('login.updaterememberme.enabled', ['username_clean' => $user->username_clean, 'token' => $token]);
         }
         $user->setRememberToken($token);
         $user->save();
     } else {
         if ($this->log_logins) {
             Log::debug('login.updaterememberme.disabled', ['username_clean' => $user->username_clean, 'token' => $token]);
         }
     }
 }
開發者ID:Aurorastation,項目名稱:Web-Interface,代碼行數:22,代碼來源:PhpbbUserProvider.php

示例10: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param IlluminateAuthenticatable $user
  * @param string                    $token
  *
  * @return void
  */
 public function updateRememberToken(IlluminateAuthenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->em->persist($user);
     $this->em->flush($user);
 }
開發者ID:spohess,項目名稱:orm,代碼行數:14,代碼來源:DoctrineUserProvider.php

示例11: updateRememberToken

 /**
  * @inheritdoc
  *
  * @param Authenticatable|User $user
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->saveEntityAndCommit($user);
 }
開發者ID:nordsoftware,項目名稱:kkv-form-engine,代碼行數:10,代碼來源:UserService.php

示例12: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  BaseAuthenticatable $member member entity
  * @param  string              $token  token for update
  *
  * @return void
  */
 public function updateRememberToken(BaseAuthenticatable $member, $token)
 {
     $member->setRememberToken($token);
     $this->repo->update($member);
 }
開發者ID:mint-soft-com,項目名稱:xpressengine,代碼行數:13,代碼來源:Provider.php

示例13: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  * @param  Authenticatable $user
  * @param  string $token
  * @return void
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->entityManager->persist($user);
     $this->entityManager->flush();
 }
開發者ID:bakgat,項目名稱:notos,代碼行數:12,代碼來源:NotosUserProvider.php

示例14: updateRememberToken

 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param  UserInterface $user
  * @param  string $token
  * @return void
  */
 public function updateRememberToken(UserContract $user, $token)
 {
     $user->setRememberToken($token);
     $this->getRepository()->store($user);
 }
開發者ID:kalvisbuls,項目名稱:laravel-auth,代碼行數:12,代碼來源:AnalogueUserProvider.php

示例15: updateRememberToken

 /**
  * Updates the "remember me" token for the given user in storage.
  *
  * @param \Illuminate\Auth\UserInterface $user
  * @param string $token
  * @return void
  */
 public function updateRememberToken(\Illuminate\Contracts\Auth\Authenticatable $user, $token)
 {
     $user->setRememberToken($token);
     $this->d2repository->createQueryBuilder('u')->getEntityManager()->flush();
 }
開發者ID:opensolutions,項目名稱:doctrine2bridge-l5,代碼行數:12,代碼來源:Doctrine2UserProvider.php


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