Skip to content

Commit 8b9094f

Browse files
authored
Merge pull request #3 from danmichaelo/package-discovery
Add package discovery
2 parents 5fd24d7 + f872392 commit 8b9094f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ Get it from composer
77
composer require despark/laravel-image-purify
88
```
99

10-
Add our service provider to `config/app.php`
10+
With Laravel 5.5 or newer, the package will be discovered automatically.
11+
If you're using an older version of Laravel, add the following to your
12+
`config/app.php` file:
13+
1114
```php
1215
$providers = [
1316
...

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,15 @@
2020
"psr-4": {
2121
"Despark\\Laravel\\ImagePurify\\": "src"
2222
}
23+
},
24+
"extra": {
25+
"laravel": {
26+
"providers": [
27+
"Despark\\Laravel\\ImagePurify\\ImagePurifyServiceProvider"
28+
],
29+
"aliases": {
30+
"ImagePurify": "Despark\\Laravel\\ImagePurify\\Facades\\ImagePurify"
31+
}
32+
}
2333
}
2434
}

0 commit comments

Comments
 (0)