lumen框架中composer require后报错Exception: ReflectionException -1 Class qrcode does not exist及lumen中sa...

解决方案:要手动去boostrap 下的app.php中注册服务

--修改facade,引入门面
$app->withFacades(true, [
    'Tymon\JWTAuth\Facades\JWTAuth'    => 'JWTAuth',
    'Tymon\JWTAuth\Facades\JWTFactory' => 'JWTFactory',
    'SimpleSoftwareIO\QrCode\Facades\QrCode' => 'QrCode',
]);


---在此处注册SuperProvider
$app->register(\SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class);

save无效:
https://blog.csdn.net/define_lin/article/details/81540294

save必须实例化对象,并且指定对象的属性,然后save,就是保存对象的属性到数据库了;
create 是实例化对象并且插入数据

你可能感兴趣的:(lumen框架中composer require后报错Exception: ReflectionException -1 Class qrcode does not exist及lumen中sa...)