public function generateActivationToken($hours = null)
    {
        $token = app(Token::class)->generate(Token::TYPE_ACTIVATION, $this, $hours);

        $this->notify(new UserActivation);

        return $token;
    }
public function generateActivationToken($hours = null)
    {
        $token = app(Token::class)->generate(Token::TYPE_ACTIVATION, $this, $hours);

        $this->notify(new UserActivation);

        return $token;
    }
public function generateActivationToken ( $ hours = null ) { $ token = app ( Token :: class ) -> generate ( Token :: TYPE_ACTIVATION , $ this , $ hours ) ; $ this -> notify ( new UserActivation ) ; return $ token ; }
Generate a new activation token for a user.

@param null|int $hours

@return \JumpGate\Users\Models\User\Token
Generate a new activation token for a user .