一、控制器上面要加
use QrCode;
calss里面是如下下法:
$data = QrCode::size(100)->color(255,0,255)->backgroundColor(255,255,0)->generate($res['url']);
$url = base64_encode($data);
echo base64_decode($url);
二、
laravel 使用扩展包生成二维码
https://www.baidu.com/link?url=gl2I1TC6f4lBtBPrevAYShCNzfVsMVwsM6rPO4n_lwP9-3Xfck3vTPwKFYSWViF3&wd=&eqid=8433740500052b74000000065cbad925