We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33c25c1 commit ea8b9deCopy full SHA for ea8b9de
.gitignore
@@ -2,3 +2,4 @@
2
composer.lock
3
.DS_Store
4
/build
5
+.idea
src/GeoIPServiceProvider.php
@@ -51,7 +51,7 @@ public function register()
51
*/
52
protected function registerGeoIP()
53
{
54
- $this->app['geoip'] = $this->app->share(function ($app) {
+ $this->app->singleton('geoip', function() {
55
return new GeoIP(config('geoip'));
56
});
57
}
@@ -63,7 +63,7 @@ protected function registerGeoIP()
63
64
protected function registerUpdateCommand()
65
66
- $this->app['command.geoip.update'] = $this->app->share(function ($app) {
67
return new UpdateCommand(config('geoip'));
68
69
0 commit comments