You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Try our dead simple, free file transfer service [keep.sh](https://keep.sh)
23
6
@@ -29,21 +12,31 @@ Upload files with a single curl command from your terminal! `curl --upload-file
29
12
## Introduction
30
13
Simple QrCode is an easy to use wrapper for the popular Laravel framework based on the great work provided by [Bacon/BaconQrCode](https://github.com/Bacon/BaconQrCode). We created an interface that is familiar and easy to install for Laravel users.
Upgrade from v2 by changing your `composer.json` file to `~3`
20
+
Upgrade from v2 or v3 by changing your `composer.json` file to `~4`
38
21
39
22
You **must** install the `imagick` PHP extension if you plan on using the `png` image format.
40
23
24
+
#### v4
25
+
26
+
There was a Laravel facade issue within v3 that causes some loading issues. The only way to fix this was to create a backwards breaking change so v4 has been released. If you are coming from v2 there is no need to change any code. The below change only effects users on v3.
27
+
28
+
All references to the `QrCode` facade need to be changed to:
29
+
30
+
```
31
+
use SimpleSoftwareIO\QrCode\Facades\QrCode;
32
+
```
33
+
41
34
<aid="docs-configuration"></a>
42
35
## Configuration
43
36
44
37
#### Composer
45
38
46
-
Run `composer require simplesoftwareio/simple-qrcode "~3"` to add the package.
39
+
Run `composer require simplesoftwareio/simple-qrcode "~4"` to add the package.
47
40
48
41
Laravel will automiatcally pick up and install the package.
49
42
@@ -71,13 +64,21 @@ You may embed a qrcode inside of an e-mail to allow your users to quickly scan.
71
64
72
65
#### Basic Usage
73
66
67
+
```
68
+
// All examples below assume you are pulling in the QrCode facade with the following line of code. The Facade is auto-loaded for Laravel users.
69
+
70
+
use SimpleSoftwareIO\QrCode\Facades\QrCode;
71
+
```
72
+
74
73
Using the QrCode Generator is very easy. The most basic syntax is:
75
74
75
+
use SimpleSoftwareIO\QrCode\Facades\QrCode;
76
+
76
77
QrCode::generate('Make me into a QrCode!');
77
78
78
79
This will make a QrCode that says "Make me into a QrCode!"
[](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
7
-
[](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
[](https://packagist.org/packages/simplesoftwareio/simple-qrcode)
0 commit comments