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.
2 parents 280b838 + 40ce6ee commit a6f00b8Copy full SHA for a6f00b8
src/Services/MaxMindDatabase.php
@@ -22,15 +22,14 @@ class MaxMindDatabase extends AbstractService
22
*/
23
public function boot()
24
{
25
+ $path = $this->config('database_path');
26
// Copy test database for now
- if (file_exists($this->config('database_path')) === false) {
27
- copy(__DIR__ . '/../../resources/geoip.mmdb', $this->config('database_path'));
+ if (file_exists($path) === false) {
28
+ mkdir(str_replace('/geoip.mmdb', '', $path));
29
+ copy(__DIR__ . '/../../resources/geoip.mmdb', $path);
30
}
31
- $this->reader = new Reader(
- $this->config('database_path'),
32
- $this->config('locales', ['en'])
33
- );
+ $this->reader = new Reader( $path, $this->config('locales', ['en']));
34
35
36
/**
0 commit comments