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