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
Copy file name to clipboardExpand all lines: docs/en/README.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,26 @@ Simple QrCode is an easy to use wrapper for the popular Laravel framework based
17
17
<aid="docs-upgrade"></a>
18
18
## Upgrade Guide
19
19
20
-
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`
21
21
22
22
You **must** install the `imagick` PHP extension if you plan on using the `png` image format.
23
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
+
24
34
<aid="docs-configuration"></a>
25
35
## Configuration
26
36
27
37
#### Composer
28
38
29
-
Run `composer require simplesoftwareio/simple-qrcode "~3"` to add the package.
39
+
Run `composer require simplesoftwareio/simple-qrcode "~4"` to add the package.
30
40
31
41
Laravel will automiatcally pick up and install the package.
32
42
@@ -54,8 +64,16 @@ You may embed a qrcode inside of an e-mail to allow your users to quickly scan.
54
64
55
65
#### Basic Usage
56
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
+
57
73
Using the QrCode Generator is very easy. The most basic syntax is:
58
74
75
+
use SimpleSoftwareIO\QrCode\Facades\QrCode;
76
+
59
77
QrCode::generate('Make me into a QrCode!');
60
78
61
79
This will make a QrCode that says "Make me into a QrCode!"
0 commit comments