Skip to content

Commit 726906e

Browse files
committed
update readme.md
1 parent c9c6c95 commit 726906e

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

CHANGELOG.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ GoogleAutocomplete::make('Address')
5353
You can access other parameter like `latitude, longitude, street_number, route, locality, administrative_area_level_1, country, postal_code`, along with everything available in the - every field present in the [PlaceResult object](https://developers.google.com/maps/documentation/javascript/reference/#PlaceResult)
5454

5555
```php
56-
use YieldStudio\NovaGoogleAutocomplete\AddressMetadata;
57-
use YieldStudio\NovaGoogleAutocomplete\GoogleAutocomplete;
56+
use Hnooz\NovaGoogleAutocomplete\AddressMetadata;
57+
use Hnooz\NovaGoogleAutocomplete\GoogleAutocomplete;
5858

5959
// Now this address field will search and store the address as a string, but also made available the values in the withValues array
6060
GoogleAutocomplete::make('Address')->withValues(['latitude', 'longitude']),
@@ -74,8 +74,8 @@ By default, the formatted address will be stored on the property provided in the
7474

7575

7676
```php
77-
use YieldStudio\NovaGoogleAutocomplete\AddressMetadata;
78-
use YieldStudio\NovaGoogleAutocomplete\GoogleAutocomplete;
77+
use Hnooz\NovaGoogleAutocomplete\AddressMetadata;
78+
use Hnooz\NovaGoogleAutocomplete\GoogleAutocomplete;
7979

8080
// Formatted address will not be stored
8181
GoogleAutocomplete::make('Address')->withValues(['latitude', 'longitude'])->dontStore(),
@@ -90,8 +90,8 @@ AddressMetadata::make('long')->fromValue('longitude'),
9090
If you want to concatenate certain elements of the geocoded object that is returned by Google, using `{{` and `}}`, wrap the key like you would above; like so:
9191

9292
```php
93-
use YieldStudio\NovaGoogleAutocomplete\AddressMetadata;
94-
use YieldStudio\NovaGoogleAutocomplete\GoogleAutocomplete;
93+
use Hnooz\NovaGoogleAutocomplete\AddressMetadata;
94+
use Hnooz\NovaGoogleAutocomplete\GoogleAutocomplete;
9595

9696
GoogleAutocomplete::make('Address')->withValues(['latitude', 'longitude']),
9797

@@ -109,7 +109,7 @@ So the value that would be rendered within the coordinates input would be someth
109109
If you would like to use the **long_name** version of the geocoded object (Kansas versus KS), you can define the `GoogleAutocomplete` field values with dot notation followed with the name version you want to use; like so:
110110

111111
```php
112-
use YieldStudio\NovaGoogleAutocomplete\GoogleAutocomplete;
112+
use Hnooz\NovaGoogleAutocomplete\GoogleAutocomplete;
113113

114114
GoogleAutocomplete::make('Address')
115115
->withValues([
@@ -127,8 +127,8 @@ Which would return:
127127
You can change the type of places that are returned by the autocomplete using the placeType() method. You can use any of the values listed at [https://developers.google.com/places/supported_types#table3](https://developers.google.com/places/supported_types#table3)
128128

129129
```php
130-
use YieldStudio\NovaGoogleAutocomplete\AddressMetadata;
131-
use YieldStudio\NovaGoogleAutocomplete\GoogleAutocomplete;
130+
use Hnooz\NovaGoogleAutocomplete\AddressMetadata;
131+
use Hnooz\NovaGoogleAutocomplete\GoogleAutocomplete;
132132

133133
// This autocomplete field will return results that match a business name instead of address.
134134
// All the same address data is still stored.
@@ -156,17 +156,8 @@ Code::make('Address')->json()->onlyOnDetail(),
156156
```
157157

158158
## Localization
159-
160159
If you want this package in your language, just create a json lang file in your `resources/lang/vendor/nova-google-autocomplete` folder.
161160

162-
## Changelog
163-
164-
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
165-
166-
### Security
167-
168-
If you've found a bug regarding security please mail [contact@yieldstudio.fr](mailto:contact@yieldstudio.fr) instead of using the issue tracker.
169-
170161
## Credits
171162
- [James Hemery](https://github.com/jameshemery) - Original developer
172163
- [Mohamed Idris](https://github.com/hnooz) - Fork maintainer

0 commit comments

Comments
 (0)