Laravel 二维码扫描器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/50637593/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 17:46:49  来源:igfitidea点击:

Laravel QR code scanner

laravelqr-code

提问by Zolak94

I'm interested in adding QR Scanner to my Laravel project, I found one that suits me it's called gruhn/vue-qrcode-reader there is also a written tutorial how to install it, but I just don't know where to add those codes or files. I've installed everything the problem is that I just don't know what to edit and how.

我有兴趣将 QR 扫描仪添加到我的 Laravel 项目中,我找到了一个适合我的叫做 gruhn/vue-qrcode-reader 还有一个如何安装它的书面教程,但我只是不知道在哪里添加这些代码或文件。我已经安装了所有问题,问题是我不知道要编辑什么以及如何编辑。

回答by OlaJ

This is a late response: but for anyone who comes across this like me...

这是一个迟到的回应:但是对于像我这样遇到这个问题的人......

gruhn/vue-qrcode-reader was created using VueJS a Javascript Framework. Since you use Laravel: VueJS already comes preinstalled with Laravel depending on the version you use. You should also have Npm in order to use the npm run watch (the watcher).

gruhn/vue-qrcode-reader 是使用 VueJS Javascript 框架创建的。由于您使用 Laravel:根据您使用的版本,VueJS 已经预装了 Laravel。您还应该拥有 Npm 才能使用 npm run watch(观察者)。

Follow the installation steps found at their GitHub and then Simply create a new VueJS component and paste the code found in GitHub: gruhn/vue-qrcode-reader: while having a little understanding you can easily integrate this with Laravel by mounting the component where you wish to have the scanner in your project and viola it should work as advertised.

按照在他们的 GitHub 上找到的安装步骤,然后简单地创建一个新的 VueJS 组件并粘贴在 GitHub 中找到的代码:gruhn/vue-qrcode-reader:虽然有一点理解,但您可以通过将组件安装在您所在的位置轻松地将其与 Laravel 集成希望在您的项目和中提琴中使用扫描仪,它应该像宣传的那样工作。

I hope this helps a bit.

我希望这个能有一点帮助。

回答by Rajesh kumar

You should try this one laravel package:-

你应该试试这个 laravel 包:-

https://github.com/werneckbh/laravel-qr-code

https://github.com/werneckbh/laravel-qr-code

It would be best for you, because there are only few steps and that are too easy.

这对你来说是最好的,因为只有几个步骤,而且太容易了。