Exemplo n.º 1
0
 /**
  * @param User $user
  * @return $this
  */
 public function setUserAsLoggedIn($user)
 {
     $this->user = $user;
     $user and Session::set($this->sessionKey . '.uid', $user->getId());
     return $this;
 }