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

        $this->notify(new UserInvitation);

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

        $this->notify(new UserInvitation);

        return $token;
    }
public function generateInvitationToken ( $ hours = null ) { $ token = app ( Token :: class ) -> generate ( Token :: TYPE_INVITATION , $ this , $ hours ) ; $ this -> notify ( new UserInvitation ) ; return $ token ; }
Generate a new invitation token for a user.

@param null|int $hours

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