コード例 #1
0
 /**
  * Authenticate a user via the id
  *
  * @param  mixed $id
  * @return bool
  */
 public function byId($id)
 {
     try {
         return $this->auth->onceUsingId($id);
     } catch (Exception $e) {
         return false;
     }
 }
コード例 #2
0
 /**
  * Authenticate a user via the id.
  *
  * @param  mixed  $id
  * @return bool
  */
 public function byId($id)
 {
     return $this->auth->onceUsingId($id);
 }