作者:陈业贵 华为云享专家 51cto(专家博主 明日之星 TOP红人) 阿里云专家博主
文章目录
composer require simplesoftwareio/simple-qrcode
SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class,
'QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class,
namespace App\Http\Controllers;use QrCode;//引入二维码类class UserController extends Controller{ public function Upload() {echo QrCode::generate('Hello,LaravelAcademy!');//生成一个二维码}}
来源地址:https://blog.csdn.net/qq_37805832/article/details/128258915