首先通过view 选项来获取渲染后的页面
1、$html = view('welcome', compact('param1', 'param2'));
2、$html = response($html)->getContent();
或者
$html = view('welcome', compact('param1', 'param2'))->render();
首先通过view 选项来获取渲染后的页面
1、$html = view('welcome', compact('param1', 'param2'));
2、$html = response($html)->getContent();
或者
$html = view('welcome', compact('param1', 'param2'))->render();