Skip to content

Commit 043beb2

Browse files
authored
Merge pull request #29 from codedge/laravel-auto-discovery
Add auto discovery
2 parents 2d0ca3a + d2f5eb7 commit 043beb2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ $ composer require codedge/laravel-fpdf
1616
```
1717

1818
## Usage
19+
20+
### Laravel >= 5.5
21+
Enjoy the auto discovery feature.
22+
23+
### Laravel <5.5
1924
To use the static interfaces (facades) you need to add the following lines to your `config/app.php`. The `[1]` is for
2025
registering the service provider, the `[2]` are for specifying the facades:
2126

@@ -83,4 +88,4 @@ Route::get('/', function (Codedge\Fpdf\Fpdf\Fpdf $fpdf) {
8388
$fpdf->Output();
8489

8590
});
86-
```
91+
```

composer.json

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
"email": "[email protected]"
1818
}
1919
],
20+
"extra": {
21+
"laravel": {
22+
"providers": [
23+
"Codedge\\Fpdf\\FpdfServiceProvider"
24+
],
25+
"aliases": {
26+
"Updater": "Codedge\\Fpdf\\Facades\\Fpdf"
27+
}
28+
}
29+
},
2030
"require": {
2131
"php": ">=5.4.0",
2232
"illuminate/support": "5.*"

0 commit comments

Comments
 (0)