public function getUserRepository() { return $this->users; }
/** * Authenticate a user via the id. * * @param mixed $id * * @return bool */ public function byId($id) { if ($user = $this->sentinel->getUserRepository()->findById($id)) { $this->sentinel->setUser($user); return true; } return false; }