public function byId($id) { if ($user = $this->sentinel->getUserRepository()->findById($id)) { $this->sentinel->setUser($user); return true; } return false; }