Skip to content

Commit 2f7d92b

Browse files
committed
Add Package Discovery
1 parent 5ad6e65 commit 2f7d92b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ IP2Proxy Laravel extension enables the user to query an IP address if it was bei
99

1010
## INSTALLATION
1111

12-
1. Run the command: `composer require ip2location/ip2proxy-laravel` to download the package into the Laravel platform.
13-
2. Edit `config/app.php` and add the below line in 'providers' section:
14-
`Ip2location\IP2ProxyLaravel\IP2ProxyLaravelServiceProvider::class,`
15-
3. Then publish the config file by:
16-
`php artisan vendor:publish --provider='Ip2location\IP2ProxyLaravel\IP2ProxyLaravelServiceProvider' --force`
12+
Run the command: `composer require ip2location/ip2proxy-laravel` to download the package into the Laravel platform.
1713

1814
## USAGE
1915

composer.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"license": "MIT",
55
"keywords": [
66
"laravel",
7-
"laravel 5",
7+
"laravel 6",
8+
"laravel 7",
9+
"laravel 8",
810
"IP2Proxy",
911
"proxy"
1012
],
@@ -23,5 +25,12 @@
2325
"psr-4": {
2426
"Ip2location\\IP2ProxyLaravel\\": "src/"
2527
}
28+
},
29+
"extra": {
30+
"laravel": {
31+
"providers": [
32+
"Ip2location\\IP2ProxyLaravel\\IP2ProxyLaravelServiceProvider"
33+
]
34+
}
2635
}
2736
}

0 commit comments

Comments
 (0)