activate() public method

Activates the given user.
public activate ( mixed $user ) : boolean
$user mixed
return boolean
Ejemplo n.º 1
0
 /**
  * Activates the given user.
  *
  * @param  mixed $user
  *
  * @return bool
  * @throws \InvalidArgumentException
  */
 public function activate($user)
 {
     return $this->sentinel->activate($user);
 }
Ejemplo 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);
 }