正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -266,7 +266,7 @@ class Demo extends Command | @@ -266,7 +266,7 @@ class Demo extends Command | ||
| 266 | // } | 266 | // } |
| 267 | public function handle(){ | 267 | public function handle(){ |
| 268 | $html = '<a href="#" class="logo img-box"><img src="https://cdn.globalso.com/fiberglass-expert/logo.png" alt="logoz9j"></a>'; | 268 | $html = '<a href="#" class="logo img-box"><img src="https://cdn.globalso.com/fiberglass-expert/logo.png" alt="logoz9j"></a>'; |
| 269 | - $dom = file_get_html('https://cdn.globalso.com/'); | 269 | + $dom = str_get_html($html); |
| 270 | $texts = $dom->find("text"); | 270 | $texts = $dom->find("text"); |
| 271 | dd($texts); | 271 | dd($texts); |
| 272 | // $projectModel = new Project(); | 272 | // $projectModel = new Project(); |
-
请 注册 或 登录 后发表评论