File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ public function register()
52
52
'visits '
53
53
);
54
54
55
+ // Mock implementation
56
+ if ($ this ->app ->environment ('testing ' )) {
57
+ $ this ->mergeConfigFrom (
58
+ __DIR__ .'/config/geoip.php ' ,
59
+ 'visits '
60
+ );
61
+ }
55
62
56
63
// Register GeoIP service provider if not already registered
57
64
if (!$ this ->app ->providerIsLoaded (GeoIPServiceProvider::class)) {
@@ -64,19 +71,6 @@ public function register()
64
71
$ this ->app ->alias ('GeoIP ' , \Torann \GeoIP \Facades \GeoIP::class);
65
72
}
66
73
67
- // Make sure GeoIP has a configuration
68
- if (!file_exists (config_path ('geoip.php ' ))) {
69
- $ this ->publishes ([
70
- __DIR__ .'/config/geoip.php ' => config_path ('geoip.php ' ),
71
- ], 'config ' );
72
-
73
- // Force merge the config in the current request
74
- $ this ->mergeConfigFrom (
75
- __DIR__ .'/config/geoip.php ' ,
76
- 'geoip '
77
- );
78
- }
79
-
80
74
$ this ->app ->bind ('command.visits:clean ' , CleanCommand::class);
81
75
82
76
$ this ->commands ([
Original file line number Diff line number Diff line change 36
36
|
37
37
*/
38
38
39
- 'service ' => null ,
39
+ 'service ' => ' ipdata ' ,
40
40
41
41
/*
42
42
|--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments