activate() public method

Activates the given user.
public activate ( mixed $user ) : boolean
$user mixed
return boolean
Esempio n. 1
0
 /**
  * Activates the given user.
  *
  * @param  mixed $user
  *
  * @return bool
  * @throws \InvalidArgumentException
  */
 public function activate($user)
 {
     return $this->sentinel->activate($user);
 }
Esempio n. 2
0
 /**
  * Activates the given user.
  *
  * @param mixed $user
  * @return bool 
  * @throws \InvalidArgumentException
  * @static 
  */
 public static function activate($user)
 {
     return \Cartalyst\Sentinel\Sentinel::activate($user);
 }