예제 #1
0
 /**
  * Find user by slug and recovery token.
  *
  * @param $slug
  * @param $recoveryToken
  *
  * @return User
  */
 public function findBySlugAndRecoveryToken($slug, $recoveryToken)
 {
     return User::where(User::SLUG, $slug)->where(User::RECOVERY_TOKEN, $recoveryToken)->first();
 }