protected function getAutologinToken()
    {
        $length = config('autologin.length');

        do {
            $token = Str::random($length);
        } while ($this->provider->findByToken($token));

        return $token;
    }
protected function getAutologinToken()
    {
        $length = config('autologin.length');

        do {
            $token = Str::random($length);
        } while ($this->provider->findByToken($token));

        return $token;
    }
protected function getAutologinToken ( ) { $ length = config ( 'autologin.length' ) ; do { $ token = Str :: random ( $ length ) ; } while ( $ this -> provider -> findByToken ( $ token ) ) ; return $ token ; }
Generate a random unique token using the length that is provided
in the configuration file.

@return string
Generate a random unique token using the length that is provided in the configuration file .