Skip to content

Commit

Permalink
[Bugfix] Load env variables into config
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricewijnia committed Sep 28, 2020
1 parent 0fe16b8 commit 10b3f8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions config/maps-address-field.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'key' => env('NOVA_MAPS_ADDRESS_KEY')
];
3 changes: 2 additions & 1 deletion src/FieldServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function boot()
*/
public function register()
{
//
$this->mergeConfigFrom(__DIR__.'/../config/maps-address-field.php', 'nova.maps-address-field');

}
}
2 changes: 1 addition & 1 deletion src/MapsAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct($name, $attribute = null, callable $resolveCallback
*/
public function googleKey() {
return $this->withMeta([
'googleKey' => env('NOVA_MAPS_ADDRESS_KEY')
'googleKey' => config('nova.maps-address-field.key')
]);
}

Expand Down

0 comments on commit 10b3f8c

Please sign in to comment.