Skip to content

Commit 38898de

Browse files
committed
Publish config
1 parent cd5c53b commit 38898de

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@ public function fields(Request $request)
3636
```
3737

3838
## Configuration
39-
To do
39+
By default, you should reference your Google Maps API key in your `.env` file:
40+
41+
```
42+
NOVA_GOOGLE_MAPS_API_KEY=your-api-key
43+
```
44+
45+
Optionally, you can publish the config to change the API key location and the map's language by doing: `php artisan vendor:publish --tag=nova-google-maps`.
4046

4147
## 💖 Sponsorships
4248

src/FieldServiceProvider.php

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public function boot()
2020
Nova::script('nova-google-maps', __DIR__.'/../dist/js/field.js');
2121
Nova::style('nova-google-maps', __DIR__.'/../dist/css/field.css');
2222
});
23+
24+
$this->publishes([
25+
__DIR__ . '/../config/nova-google-maps.php' => config_path('nova-google-maps.php'),
26+
], 'nova-google-maps');
2327
}
2428

2529
/**

0 commit comments

Comments
 (0)