Skip to content

Commit 1a8100e

Browse files
committed
added package auto-discovery
1 parent b7b2711 commit 1a8100e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ Larapay Version 6+ required PHP 7+
5454
```bash
5555
composer require php-monsters/laravel-online-payment
5656
```
57-
2. Add package service provider to your app service providers:
57+
2. Add package service provider to your app service providers (only for Laravel < 5.5):
5858

5959
```php
6060
PhpMonsters\Larapay\LarapayServiceProvider::class,
6161
PhpMonsters\Log\XLogServiceProvider::class,
6262
```
63-
3. Add package alias to your app aliases:
63+
3. Add package alias to your app aliases (only for Laravel < 5.5):
6464

6565
```php
6666
'Larapay' => PhpMonsters\Larapay\Facades\Larapay::class,

composer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,15 @@
3838
"PhpMonsters\\Larapay\\": "src/"
3939
}
4040
},
41+
"extra": {
42+
"laravel": {
43+
"providers": [
44+
"PhpMonsters\\Larapay\\LarapayServiceProvider"
45+
],
46+
"aliases": {
47+
"XLog": "PhpMonsters\\Larapay\\Facades\\Larapay"
48+
}
49+
}
50+
},
4151
"minimum-stability": "stable"
4252
}

0 commit comments

Comments
 (0)