/**
  * retrieve debug info from storage
  *
  * @param null $token
  * @throws LaravelSmsException
  * @return mixed 
  * @static 
  */
 public static function retrieveDebugInfo($token = null)
 {
     return \Toplan\Sms\SmsManager::retrieveDebugInfo($token);
 }
 public function getInfo(Request $request, $token = null)
 {
     $html = '<meta charset="UTF-8"/><h2 align="center" style="margin-top: 20px;">Hello, welcome to laravel-sms v2.0</h2>';
     $html .= '<p style="color: #666;"><a href="https://github.com/toplan/laravel-sms" target="_blank">laravel-sms源码</a>托管在GitHub,欢迎你的使用。如有问题和建议,欢迎提供issue。当然你也能为该项目提供开源代码,让laravel-sms支持更多服务商。</p>';
     $html .= '<hr>';
     $html .= '<p>你可以在调试模式(设置config/app.php中的debug为true)下查看到存储在session中的验证码短信相关数据(方便你进行调试):</p>';
     echo $html;
     $token = $token ?: $request->input('token', null);
     if (config('app.debug')) {
         $smsData = SM::retrieveDebugInfo($token);
         dd($smsData);
     } else {
         echo '<p align="center" style="color: #ff0000;;">现在是非调试模式,无法查看验证码短信数据</p>';
     }
 }